Skip to content

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

Closed
Dastano wants to merge 4 commits into
readmet3xt-lab:mainfrom
Dastano:texbudget-hot
Closed

Dastano wants to merge 4 commits into
readmet3xt-lab:mainfrom
Dastano:texbudget-hot

Conversation

@Dastano

@Dastano Dastano commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

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

readmet3xt-lab and others added 4 commits November 27, 2026 13:45
One commit holds the whole tree. The work before it is that of VIctory by Marvisak and its contributors and of the
forks named in the README's Credits (fxceless/victory-fork, avatarmanz/VIctory-7900XTX, codec-d/cool_fox,
DexNom/VIctory, Belobug/VIctory-Belobug-AMD and others), with this fork's changes on top: DLSS Super Resolution
and Frame Generation, native 1440p on the Series X profile, the light and reflection estimates, 64-lane compute
programs on 32-lane GPU waves, texture and descriptor-heap work, the launcher.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
One-stop launcher (settings, shader and pipeline preparation behind a
loading screen, F1 menu); static samplers made in one fixed order so the
driver finds saved pipelines again; cloud tile sort fix; violet light
estimate fix; folder accepted for the title; buffer pool; VRAM limit;
ports from other forks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…off)

VICTORY_PASSES_HOT=<us> wakes the threads that spread a submission's
refreshes at the start of the submission and lets an idle one wait awake
for the next pass, up to that many microseconds after the last work,
instead of sleeping on the queue's lock. A pass then finds them awake,
and the waking overlaps the submission's asking and planning. Only when
work starts changes, not what is done or by whom.

RTX 4090 + Ryzen 9 7950X3D, DLSS Quality, walking route through the
first boat mission at the 30 fps cap, with VICTORY_PASSES_HOT=1: the
longest frame walking went from 525 to 145 ms, 29.1 to 29.3 fps.

Off by default in code: long values keep cores spinning (the benchmark
wide_tests::pass_overhead, ignored by default, shows 28 -> 119 us a pass
with more threads busy than cores). On in play-foxhound.ps1 with 1.
Test hot_helpers_run_every_job: with the helpers kept awake every job of
a pass still runs once and the pass returns only when all have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 <noreply@anthropic.com>
readmet3xt-lab added a commit that referenced this pull request Nov 27, 2026
- One graphics card for the launcher, warm-up, game and DLSS: the one with the
  most memory of its own (VICTORY_ADAPTER names another). DLSS was greyed out
  on PCs with integrated graphics (#14).
- Texture sweep: textures whose copy was let go leave the looks until used
  again; each look cost more the longer a session ran (#12).
- Preludes from a shared pool while their submission runs (about 190 alive
  instead of about 1,100).
- Launcher: a warning before Play when RAM and page file are under 52 GB.
- A frame's texture passes within VICTORY_TEXSPK_PASS_MS together and helpers
  woken per submission (VICTORY_PASSES_HOT), from PR #13; the launcher sets 8
  and 1.
- Example list_memory: what command lists and upload buffers cost.

Co-authored-by: Dastano <197081+Dastano@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@readmet3xt-lab

Copy link
Copy Markdown
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants