Diagnostics: capture a frame by time, and a marker when its dump is complete #1075
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1075
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1075"
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?
@SpaghettiMaster545 on GitHub · 2026-11-25 18:36 UTC · original
SpaghettiMaster545:pr/capture-by-time→main· +170 −15 · 2 files · 1 commits · openTwo diagnostics-build additions to the frame capture, so that unattended test runs are shorter and never stop in the middle of a dump.
VICTORY_CAPTURE_SECONDS=<s><s>seconds since the process started.VICTORY_CAPTURE_FRAMES, with its targets too whenVICTORY_DUMP_TARGETSis set, and its files keep the real frame number. It is picked at the present before it, so nothing of it is recorded before the pick.VICTORY_CAPTURE_FRAMESworks as before.Why: the menus run at 30 fps and the world at 4–6, so a frame number deep enough to be in the steady world is reached minutes after the world is steady. On an RTX 5070 Ti the world was steady from about 150–180 s, but frame 2250 only came at 320–440 s. Dumping at 240 s instead cut a warm test run from 310–380 s of game time to about 250 s.
Dump-complete marker
dumped-<n>.txtas the last file, after the picture and every target are saved.Tested
capture.rspass on this branch (4 tests).cargo clippyreports nothing in the changed files.mainalready fails-D warningson four existing victory-gpu lints, which #982 fixes.VICTORY_CAPTURE_SECONDS=240: the dumps were complete, and runs stopped about 1 s afterdumped-<n>.txt.Only
crates/victory-gpu/src/capture.rsandqueue.rschange, and only diagnostics builds read the switch. Release builds behave as before.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.