RAGE's own DEBUG INFO, live: VICTORY_RAGE_DEBUGINFO=<seconds> (streaming requests, tile heap, pools, camera, mission) in the log and window caption #643
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/643"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by Jonirulah on 2026-11-25T03:50:48Z.
RAGE already reports its state. This reads it while the title runs, instead of only after a crash.
The title's crash handler writes a
###### DEBUG INFO ######block: game state, frame, streaming requests, tile heap used/total, entity pools (INSTANCE_LIST,OBJECT,LIGHT...), camera position and front, mission and stage, script threads, player, console type. So far it has only been seen in*.crash.logafter a crash, and several issues quote it from there.With
VICTORY_RAGE_DEBUGINFO=<seconds>(diagnostics builds), a thread of ours calls the title's own builder (RVA0x21b9a40in 1.0.2.1) every N seconds:RAGE: ..., next to our frame lines;| RAGE frame 1014 stream 722 tileheap 3881/3977 MB Game Running.VICTORY_RAGE_DEBUGINFO_RVA(hex) overrides the address for another build.Why it's safe to call live: each section reads a cache the title keeps, under a try-lock (
lock cmpxchgon its flag). If the title holds the lock, the section writesCache is locked! Skipping!and moves on, so the call never waits on the title. The builder uses no TLS. Its printf goes through one global 4 KiB buffer of the title's, so only one thread of ours calls it. The first call waits 20 s.What it showed (RTX 3070 Laptop 8 GB, Series S, first room): tile heap 3881/3977 MB with 722 streaming requests pending, then 3560 MB and 27 pending ten seconds later.
MEMORYINFOstays 0 outside a crash; the other sections update live. That makes it useful for questions like the first room's walls: whether RAGE never asked for them, has them queued, or has them loaded and they still aren't drawn.Changes:
apps/victory/src/run.rs(diagnostics only),set_caption_extrainvictory-gpu(host.rs,lib.rs), re-exported fromvictory-hle. Release and diag builds pass onmain(310c6eb).shortcut: the RVA is specific to 1.0.2.1, and nothing checks a signature before the call.
AI-assisted: the builder, its sections and their locks were found with Ghidra by a second Claude session; Claude Code wrote and tested the change, and I ran the game.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.