Refresh helpers awake through a submission; a frame's texture pass within a cap #13

Closed
github-bot wants to merge 1 commit from gh-pr/13/head into gh-pr/13/base
Owner

@⁠Dastano on GitHub · 2026-11-27 17:35 UTC · original
Dastano:texbudget-hot → main · +71 −0 · 2 files · 4 commits · closed without merging

Two switches, both off by default in code and on in scripts/play-foxhound.ps1.

VICTORY_PASSES_HOT=<us>: wakes the threads that spread a submission's refreshes at the submission's start, and an idle one waits awake for the next pass up to that many microseconds instead of sleeping. Only when work starts changes, not what is done. Launcher: 1.

VICTORY_TEXSPK_PASS_MS=<ms>: caps a frame's runs of the pass over textures picked by index in total (its own and the early run; runs before a bake are exempt). The slots left wait for the next frame. A texture may show a frame later in a streaming burst. Launcher: 8.

Measurements

RTX 4090 + Ryzen 9 7950X3D, DLSS Quality, walking route through the first boat mission:

  • Texture pass cap 8 ms, no frame cap: 39.4 -> 47.0 fps mean.
  • Helpers awake (1), 30 fps cap: longest frame walking 525 -> 145 ms, 29.1 -> 29.3 fps.

Longer VICTORY_PASSES_HOT values keep cores spinning. The ignored benchmark wide_tests::pass_overhead shows a pass costing more when more threads are busy than there are cores. That is why it stays off in code.

Try it

Run scripts/play-foxhound.ps1 as usual (both on). To compare, use -More @{VICTORY_PASSES_HOT='0'; VICTORY_TEXSPK_PASS_MS='0'}.

Tests

  • shadow::wide_tests::hot_helpers_run_every_job: with the helpers awake, every job still runs once.
  • draw::tests::a_frames_pass_runs_share_the_texspk_cap: later runs get what the cap has left.
  • pass_overhead benchmark (ignored).

🤖 Generated with Claude Code

**@⁠Dastano** on GitHub · 2026-11-27 17:35 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/13) `Dastano:texbudget-hot` → `main` · +71 −0 · 2 files · 4 commits · closed without merging Two switches, both off by default in code and on in `scripts/play-foxhound.ps1`. **`VICTORY_PASSES_HOT=<us>`**: wakes the threads that spread a submission's refreshes at the submission's start, and an idle one waits awake for the next pass up to that many microseconds instead of sleeping. Only when work starts changes, not what is done. Launcher: `1`. **`VICTORY_TEXSPK_PASS_MS=<ms>`**: caps a frame's runs of the pass over textures picked by index in total (its own and the early run; runs before a bake are exempt). The slots left wait for the next frame. A texture may show a frame later in a streaming burst. Launcher: `8`. ## Measurements RTX 4090 + Ryzen 9 7950X3D, DLSS Quality, walking route through the first boat mission: - Texture pass cap 8 ms, no frame cap: 39.4 -> 47.0 fps mean. - Helpers awake (`1`), 30 fps cap: longest frame walking 525 -> 145 ms, 29.1 -> 29.3 fps. Longer `VICTORY_PASSES_HOT` values keep cores spinning. The ignored benchmark `wide_tests::pass_overhead` shows a pass costing more when more threads are busy than there are cores. That is why it stays off in code. ## Try it Run `scripts/play-foxhound.ps1` as usual (both on). To compare, use `-More @{VICTORY_PASSES_HOT='0'; VICTORY_TEXSPK_PASS_MS='0'}`. ## Tests - `shadow::wide_tests::hot_helpers_run_every_job`: with the helpers awake, every job still runs once. - `draw::tests::a_frames_pass_runs_share_the_texspk_cap`: later runs get what the cap has left. - `pass_overhead` benchmark (ignored). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The pass over textures picked by index runs several times a frame (its
own run and the early one at the frame's first draw), each within
VICTORY_TEXTURE_STAGE_MS alone. Walking through the world it took
2.2-2.7 s of each 5 seconds in the stretches with frames over 50 ms
(3,000 uploads a second, each detiled whole through a staging buffer
made for it), 0.6-0.9 s in calm ones.

VICTORY_TEXSPK_PASS_MS=<ms> caps a frame's runs of the pass in total;
the slots left wait for the next frame, as those past a run's time do
already. Runs before a bake keep their own budget. A texture picked by
index may show a frame or more later in such a burst.

RTX 4090 + Ryzen 9 7950X3D, DLSS Quality, no frame cap, walking route
through the first boat mission: with 8 ms the mean went from 39.4 to
47.0 fps.

Off by default in code; on in play-foxhound.ps1 with 8. Test
a_frames_pass_runs_share_the_texspk_cap: a frame's later runs get what
the cap has left, nothing once it is spent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 02:23:08 +00:00
github-bot closed this pull request 2026-11-30 02:23:08 +00:00
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-11-27 21:20 UTC · original

Thank you, this is in v0.2.0-pre.4: https://github.com/readmet3xt-lab/foxhound/releases/tag/v0.2.0-pre.4

Both switches went in as you wrote them, with you as co-author on the commit (3d52ac8). The launcher sets VICTORY_TEXSPK_PASS_MS=8 and VICTORY_PASSES_HOT=1, as your script did. On an RTX 4070 SUPER with a Ryzen 7 7800X3D at the 30 fps cap the change is within a few percent (opening cutscenes 36.0 ms mean against 36.3, the first minute of driving 38.7 against 40.2), with no difference in the pictures.

main's history was rewritten to a single commit before pre.3, so this branch no longer merges. Closing it as included.

**@⁠readmet3xt-lab** on GitHub · 2026-11-27 21:20 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/13#issuecomment-7228350600) Thank you, this is in v0.2.0-pre.4: https://github.com/readmet3xt-lab/foxhound/releases/tag/v0.2.0-pre.4 Both switches went in as you wrote them, with you as co-author on the commit (3d52ac8). The launcher sets `VICTORY_TEXSPK_PASS_MS=8` and `VICTORY_PASSES_HOT=1`, as your script did. On an RTX 4070 SUPER with a Ryzen 7 7800X3D at the 30 fps cap the change is within a few percent (opening cutscenes 36.0 ms mean against 36.3, the first minute of driving 38.7 against 40.2), with no difference in the pictures. `main`'s history was rewritten to a single commit before pre.3, so this branch no longer merges. Closing it as included.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.