update client visuals, performance and diagnostics

This commit is contained in:
st committed 2026-10-14 23:30:29 -05:00
1 parent 361892bf0b
commit 875bab0310
155 files changed
+40855 -421

No files matched your search

+47
View File
@@ -1,5 +1,31 @@
# FOV Changer verification
## Debug startup scanning
Debug builds also show a read-only diagnostics dashboard after the intro. It
anchors to the top-right HUD grid, flows into columns to fit the display and
uses the current client fonts and text shadows with no background or border.
The compact readout reports rolling frame statistics,
client/module/Present elapsed times, process CPU and memory, adapter-local memory,
aggregate core hook readiness, world snapshot age, input counters, weather,
particles and profiles. Process CPU is normalized across logical processors;
process and GPU memory are for Minecraft as a whole, not just the client DLL.
Present elapsed time includes waiting. Slow counters refresh at 2 Hz; frame
timing stays live. Inactive readers remain inactive. Release builds exclude it.
`debug_metrics_tests.h` verifies statistics, grid alignment and screen bounds at
multiple resolutions/grid sizes, sampling cadence and passive reader behavior.
Signature searches use the longest literal run as an anchor, then verify all
wildcards at each candidate. This avoids checked `vector<bool>` access at every
executable byte in unoptimized Debug builds. Unique-match rejection is retained.
`sigscan_tests.h` compares 3,000 generated patterns against an independent matcher
and checks wildcard-only patterns, overlapping matches and guard-page boundaries.
The existing integration tests still check missing and ambiguous executable matches.
Debug builds write `startup-debug.log` beside `client.dll`, including named scans,
scan durations and the transition from world hooks to modules. If startup still
stalls in-game, inspect the last entry before assuming the remaining issue is a scan.
## World modules and HUD style
See [WORLD_MODULES.md](WORLD_MODULES.md) for the new modules, verified interfaces,
@@ -139,3 +165,24 @@ The Debug and Release client DLLs build successfully, and the isolated integrati
test passes. Visual behavior inside Minecraft still requires the in-game check.
Future game updates may require a new signature; a missing or ambiguous match
leaves the module unavailable.
# Window branding
The client applies `amnesia // minecraft {version}` to the game window when its
renderer initializes. The version comes from the running app's package identity;
package `1.26.5203.0` displays as `26.52`. Without a package identity the title
omits the version. Both window icon sizes use the embedded `src/assets/window.ico`.
Branding is checked once per second and the saved title and icon handles are
restored on unload. The injector's source icon is only copied, never modified.
Render callbacks only post branding requests. Title/icon reads and writes run
on the window thread through the input message handler, avoiding a synchronous
render-to-window wait. Unload requests restoration before removing that handler,
with a one-second timeout if the window thread is unavailable.
The integration suite uses a real hidden Win32 window to verify embedded icon
loading, branding reapplication, repeated install/unload, and restoration of the
original title and icons. Minecraft's title bar and task-switcher appearance still
need an in-game check after loading the rebuilt DLL.
The regression test schedules branding from another thread while the UI thread
does not process messages, then verifies application when messages resume and
restoration from a separate unload thread. It also covers unload before the first
posted branding request has run.