VICTORY_WIDE_THREADS and VICTORY_CAPTURE_EVERY #312
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
old-names
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!312
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-312"
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?
@wondasahnet on GitHub · 2026-11-27 15:38 UTC · original
wondasahnet:feat/wide-threads-capture-every→main· +50405 −4327 · 195 files · 578 commits · closed without mergingTwo switches, one commit each. Without them nothing changes.
VICTORY_WIDE_THREADS=<n>(1 to 16)The submitting thread shares a submission's refreshes with helper threads (
shadow::wide) and waits for the last of them. How many there are is a quarter of the processors, 2 to 6: 4 on a CPU of eight cores with two threads each. The switch says how many instead.Why one would want to: in a 25 s sampling profile of the Series S prison scene on a Ryzen 7 9800X3D (
-Machine 4070, 22 to 23 fps), the parallel refreshes were 22% of the submitting thread's samples, while the threads that translate the title's lists were parked about nine tenths of the time. The frame waits for the submitting thread, and there are idle cores beside it.Measured, RTX 5080, Ryzen 7 9800X3D, 64 GB, Series S build, prison intro, diagnostics build,
-Machine 4070withVICTORY_PORT_DESCRIPTORS=1,VICTORY_PORT_GUARD=1,VICTORY_PORT_JOURNAL=1, DLSS frame generation on (the rendered rate is given), one self-driven run each:VICTORY_WIDE_THREADS=7The second run was shorter and had camera turns the first had not, and runs of this scene differ by about 1 fps as it is. It has not been measured inside one run yet. That is why this is a switch and the default stays: other CPUs need their own numbers before the default moves.
VICTORY_CAPTURE_EVERY=<n>(1 to 64)With
VICTORY_CAPTURE_WORLDevery 8th frame's picture is saved once the world is there. A picture that is wrong for a frame or two, as right after a cut, falls between two of them. The switch saves every nth instead; without it it stays every 8th. Values that do not parse leave 8; others are held to 1 to 64.Tests
Run on this branch at
abfa16f(basec44e2ce), Windows 11, RTX 5080, Ryzen 7 9800X3D, 64 GB:cargo check --workspace --all-targets --lockedcargo test --locked -p victory-gpu --features diagnostics --lib -- capture:: shadow::cargo build --locked --profile diag -p victory --features diagnostics(before the rebase ontoc44e2ce, which was clean)git diff --checkThe four CI commands were run once on a local merge of this branch with five other branches of mine, on base
fe8a7a2before the rebase: both clippy commands clean,cargo test --workspace --lockedpassed, andcargo test --workspace --all-features --locked -- --test-threads=1passed exceptmodules::lifecycle::tests::direct_close_suspends_and_exitsinvictory-hle, a window test in a crate this branch does not touch; it passed in the default job of the same run and when run again alone. After the rebase the merge was linted again with both clippy commands: clean.No new unit test: both are one environment variable read once into a
OnceLock, as the switches beside them are.In game:
VICTORY_WIDE_THREADS=7has been on in more than a dozen self-driven runs of the prison intro on the PC above with no error line in the logs;VICTORY_CAPTURE_EVERY=1was used there to find single wrong frames.Not covered
VICTORY_WIDE_THREADSon any other CPU, and values other than 7. On a CPU with fewer cores more helper threads may take time from the threads that translate the title's lists.VICTORY_CAPTURE_EVERY=1saves a picture for every frame; that is slow by design and not something to measure frame rates with.Since the runs above the branch was rebased onto
mainat16edfec(no conflicts;cargo check -p victory-gpu --all-targets --lockedclean); its tip is223402fnow.@TaynanGT on GitHub · 2026-11-27 15:54 UTC · original
@wondasahnet Keep capture frequency fixed for the thread-count comparison, and use the same camera movement in both runs. The current p10 is slightly lower at seven threads. The every-frame capture setting is a good way to mark a one-frame artefact by frame number.
@akimfomin on GitHub · 2026-11-28 02:03 UTC · original
KLBF #14 separates missing present counts from an actual zero. If you compare worker counts with
VICTORY_CAPTURE_EVERY, I suggest first checking matching numbers of valid rendered and presented samples and logging skipped rows. That prevents changes in diagnostic sampling from appearing as an improvement in frame rate. I ran the absent-versus-zero count controls locally; worker latency is separate.@TaynanGT on GitHub · 2026-11-29 11:23 UTC · original
Good point about missing counts versus actual zero. I'll keep skipped rows visible and compare matched valid rendered and presented sample counts before interpreting worker-count changes as frame-rate gains.
@TaynanGT on GitHub · 2026-11-30 17:12 UTC · original
mainhas moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the currentmainand open a new PR; I'll review it there.Pull request closed