VICTORY_THIN_THREADS=6 halved the frames over 100 ms on a 16-thread CPU (one PC, measured) #572
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 readmet3xt-lab/foxhound. Originally posted by BrenoMazini on 2026-12-03T19:09:11Z.
foxhound version: 0.8.3.5 (
5e44415) with my fork's changes on top (see "What was measured" below)GPU / CPU / RAM / Windows: RTX 4070 SUPER 12 GB / Ryzen 7 5700X (8 cores, 16 threads) / 32 GB / Windows 11
Launcher settings (resolution, DLSS, Frame Generation, VRAM limit): 3440x1440, DLSS Performance, Frame Generation off, VRAM limit not set
What happens, and when:
This is a measurement for you to weigh, not a request to change the default. I know
de5ac0dput the list translators back to 8 because 0.8.3's cut had been measured on one PC, and this is one PC too.With the default 8 list translators, the submitting thread shares the cores with them, and the frames over 100 ms come from there. With
VICTORY_THIN_THREADS=6the submitting thread prepares a frame in ~10 ms less. Frames over 100 ms fall by half, and the median and the card's load stay the same.What was measured
VICTORY_PORT_CONSTANTS=1, plus a change of my fork that is not in upstream: a buffer region kept in the card's memory (VICTORY_HOME).VICTORY_PROFILE=1/VICTORY_PROFILE_TOP=1. The process CPU is the game process's CPU time over the same 24 s.What it shows
VICTORY_PRIORITY_TIERS=1,1,-1, overVICTORY_HELPER_PRIORITY=1). The third tier also takes the records, under and views threads (21 threads in all). Below the title's threads, the lists come late, and the card waits (85 %). The translators feed the card, so taking their turn hurts, while taking some of the threads helps.VICTORY_TIMELINE, diagnostics build) showed the 8 translators each running ~45-53 ms of a ~65-69 ms frame and waiting only 12-16 ms. Next to the title's own workers, they were ~1/3 of the process's CPU time.Limits
Why an issue and not a PR
The best count likely depends on the hardware, so I don't think one number fits every PC:
So this is a data point, maybe for a default that follows the processor, or for a launcher row.
I set 6 from 16 logical processors on in my own launcher. Fewer processors keep the engine's default there. If it helps, I can run the same series on stock 0.8.3.5 (no port, no home) and post the numbers here.
Log: not attached. The logs carry the title profile's shader ids. I can post the summary lines (
frame times:,card profile,that thread worked) from each run if useful.Imported from readmet3xt-lab/foxhound. Originally posted by nativ69 on 2026-12-03T22:27:16Z.
Thanks for sharing these results. Since my hardware is very similar to yours, I ran five additional tests with
VICTORY_THIN_THREADSset to 4, 6 and 8.My results are somewhat different, particularly under significant system memory pressure.
System specifications
Test configuration
5e44415b4663)VICTORY_STREAMLINE_PRESENT=1VICTORY_ASYNC_SUBMIT=1VICTORY_TEXTURE_STAGE_MS=16I collected both Foxhound runtime logs and Windows performance counters at approximately one-second intervals.
The measurements below cover active DLSS rendering, excluding initial loading and menus. These were short runs through the opening sequence, including cutscenes and gameplay, rather than a scripted, identical camera sequence.
Performance results
Frame-time percentiles are medians of the periodic reporting windows, not global percentiles calculated from individual frames. GPU busy is Foxhound's own estimate. CPU utilization is system-wide, not process-only CPU utilization.
System memory pressure
This is probably the most important difference affecting my results.
I closed VS Code before Test 3, which freed approximately 1.5 GB of system RAM. Therefore, the lower memory pressure in that run should not be attributed solely to reducing the translator count.
The logs also report substantial cumulative memory residency waits:
These are cumulative runtime counters, including startup and loading, and may include overlapping waits. They should not be interpreted as equivalent wall-clock gameplay stalls.
Windows paging counters also showed substantial activity, although these include memory-mapped file activity and are not exclusively pagefile I/O.
GPU memory
The following are the last reported DXGI memory snapshots in each run, not peak usage measurements.
Shared GPU memory usage varied considerably between runs, reaching nearly 7 GB in some cases.
Rendering consistency
Another difficulty is that rendering quality is not consistent between runs, even when returning to a previously tested thread count.
Test 1 had noticeably better rendering. Test 2 and Test 3 had more visible rendering issues. Test 4 was acceptable but still not as good as Test 1, despite both using 6 translators.
The texture placeholder counters also varied significantly:
These counters are useful indicators of texture availability, but they are not a direct measure of overall visual correctness.
This makes FPS comparisons particularly difficult, since a faster run is not necessarily performing equivalent rendering work.
Pipeline cache considerations
Test 1 was the first run after preparing the new title profile's 93,786 known pipelines. Subsequent runs reused the prepared cache and an evolving host pipeline library.
Test 1 is therefore not a clean warm-cache baseline for evaluating the effect of translator count alone.
Observations
Conclusion
My results do not invalidate your findings, particularly given the differences in resolution, workload, fork-specific optimizations and benchmark methodology.
However, they suggest that the optimal translator count may depend on more than CPU topology alone. Available system memory, resource residency, streaming behavior and the rendering workload may all influence the result.
I agree that there is probably no universally optimal thread count and that exposing this setting in the launcher would be useful.
On my system, I would currently prioritize reducing memory pressure and improving rendering consistency before choosing a different default for
VICTORY_THIN_THREADS.It would also be interesting to see whether your results remain consistent on stock 0.8.3.5, without the additional fork-specific optimizations, and under different levels of available system RAM.
Imported from readmet3xt-lab/foxhound. Originally posted by BrenoMazini on 2026-12-03T23:57:59Z.
Thanks for running it on a similar CPU, and for posting the memory counters with it.
First, an apology. In the original post I left out two changes I had made to this PC the day before the series: a larger fixed pagefile and Resizable BAR turned on in the BIOS. Both were on in every run, and your memory numbers show the pagefile may matter a lot for this comparison. I should have listed them with the hardware, and that would have saved you part of the work. Sorry about that. They are in the setup below now.
I don't think your runs and mine contradict each other. Our two setups differ in four ways, and each of them changes whether the 6-vs-8 effect can show at all. Below I describe my exact setup, then each difference, and for each one what I measured and what I didn't.
My exact setup in the thread series
Hardware: Ryzen 7 5700X (8 cores, 16 threads), RTX 4070 SUPER 12 GB, 32 GB of RAM, Windows 11.
Pagefile: fixed size, 32 GB initial and 48 GB maximum, on the system drive. With 32 GB of RAM, that puts the commit limit at about 64 GB. Windows was managing it automatically until the day before the series.
Resizable BAR: on in the BIOS. The card reports a 16 GB BAR1 instead of 256 MB. It was turned on the day before the series.
Settings: 3440x1440 output, DLSS Performance, frame generation off, no VRAM limit set.
Build: 0.8.3.5 (
5e44415) with my fork's changes on top. PRs #545, #551 and #552 are merged in that build, but their switches were off in every run.Switches: the launcher's default switch set, plus:
VICTORY_PORT_CONSTANTS=1(the port);VICTORY_HOME=1(the home; this is my fork's change, it is not in upstream, and the next section explains it);VICTORY_PROFILE=1andVICTORY_PROFILE_TOP=1for the numbers.I checked the first line of each run's log, which lists the switches. All seven runs had the port and the home on, and each one had the translator count I meant to test.
Method:
VICTORY_KEYS_FILE, so every run turns the same way at the same speed;What the home is
The home only works together with the port, so the port comes first.
The port. With
PORT_CONSTANTS=1, one large graphics buffer of the title stays in system RAM, and the card reads and writes it there over PCIe.The problem the port leaves. In this title, the culling programs change a few small ranges of that buffer with atomic operations, tens of times a frame. Over PCIe, each atomic operation is a round trip on the bus. With the port alone, the culling cost the card 15-25 ms a frame, against under 1 ms without the port.
What the home does. It keeps a copy of those ranges in the card's own memory:
VICTORY_HOME_PROGRAMS, are translated so that their accesses to bytes inside the ranges go to the copy in the card's memory. Their accesses outside the ranges still go to the title's memory.VICTORY_HOME_ARGS, on by default).Its cost. A pull copies the whole ranges over the bus (4 MiB, about 275 µs of card time each), at every submission that uses the home. In the thread series that was about 15-16 pulls a frame, costing the card about 3.5-4 ms a frame.
Its net effect, in an earlier series at the same spot and camera turn: the card's time in compute dispatches, where the culling runs, went from about 35-40 ms to 18-19 ms a frame, and the frame rate rose about 12-16 % over both the stock path and the port alone.
Its settings in the thread series:
VICTORY_HOME=1, which turns itself off with a warning ifPORT_CONSTANTS=1is not set;VICTORY_HOME_RUNS, and I didn't change them in this series;VICTORY_HOME_PROGRAMS: 4 programs from my title profile, besides the culling programs the profile already names;VICTORY_HOME_PULL_COPY);VICTORY_HOME_ARGS);VICTORY_HOME_SPARSEis on by default and would pull only the pages the CPU wrote. It can't work under the port, because Windows' write watch doesn't answer for those pages, so every pull in these runs was whole. The log warns about it at the first pull.I'm not posting the exact ranges or the program ids, because they come from the title and the asset policy keeps title data out of posts.
Why I haven't proposed it upstream yet:
Difference 1: the port and the home move the limit from the CPU to the card
What the port does: without it, the CPU copies the title's graphics memory to the card at every submission. With
PORT_CONSTANTS=1, the card reads that memory where it is, in system RAM, over PCIe. The copying work leaves the CPU, and the card does more work reading over the bus.What the home does, as described above: it keeps the ranges the culling changes in the card's own memory, so the card stops making those round trips over PCIe. That makes the card's work cheaper again.
What I measured, on the same build, at the same spot and with the same camera turn, with 8 translators:
GUARD_PAGES=1), my card was 56-57 % busy, and the submitting thread spent 64-66 ms a frame preparing submissions. The CPU side was the limit.An earlier series, on a 0.8.2-based build, measured the two separately:
Why this matters for the translator count:
All the "busy" figures here, yours and mine, are foxhound's own estimate from the log, so they compare like with like. As you noted in #532, Task Manager can show much more (about 90 % on your PC with foxhound's estimate at 64-69 %). I didn't log the hardware's own utilization either.
Difference 2: memory headroom
Your counters showed commit peaking at 93-99 % of the limit (above 96 % in three of the five runs) and as little as 74 MB of RAM available. Your nine guard-page runs in #532 show the same pressure: median commit of 90.5-93 %, and as little as 606 MB available. My commit limit is about 64 GB, because of the fixed 32-48 GB pagefile. I didn't log commit or available RAM in the series. With that limit, commit should have stayed far below your peaks, but that is an expectation from the settings, not a measurement.
Why this matters:
Difference 3: the method
My runs repeat the same spot and the same scripted camera turn, at the same load. Your runs went through different parts of the opening sequence, with cutscenes, and the first run had a cold pipeline cache, as you noted.
Why this matters: when the scene changes between runs, the work per frame changes too. A difference in frame time can then come from the scene, not from the translator count.
Difference 4: Resizable BAR (probably small)
Resizable BAR is on here. The foxhound paths that use it are
VICTORY_WC_BARandVICTORY_SEND_BAR. Both are off by default, both were off in my runs, and the logs never show foxhound's check for card memory the CPU can map. So I don't expect Resizable BAR to explain any of this. I list it because it is one more difference if yours is off.The residency waits
You saw large cumulative residency waits. My runs have them too. I summed the waits inside each 24 s camera turn, across all threads:
The waits are about the same for every translator count, so they are not what separates 6 from 8 in my data. The second run with 6 translators had 10.4 s of waits, about the same as the runs with 8, and still had 11.7 % of frames over 100 ms, against 18.0 % and 22.7 % with 8.
What I think follows
If you want to try again, two things should remove most of the noise:
From my side, I can run 6 vs 8 translators on the stock path, without the port and the home, with the same scripted camera turn, and with commit and available RAM logged for each phase. That would show whether the effect depends on the port, which is the part neither of us has measured.
Imported from readmet3xt-lab/foxhound. Originally posted by nativ69 on 2026-12-04T01:02:46Z.
Thanks for the detailed response!
I rebooted my system, confirmed that Resizable BAR is enabled, and increased the pagefile allocation slightly. System commit pressure was significantly lower during the subsequent test.
I used the following configuration on the same Foxhound build (
5e44415b4663), at 1440p with DLSS Balanced and Frame Generation disabled:This uses the same translator count as Tests 2 and 5 in my original comment, but with the Guard Pages configuration I found preferable during my additional benchmarks in #532.
The directly comparable baseline runs are Tests 4 and 6 from #532.
Despite roughly 6 GiB less system commit and more than twice the median commit headroom, I did not observe a noticeable improvement in either rendering quality or performance.
Interestingly, physical memory pressure remained substantial despite the reduced commit pressure. Foxhound still reported limiting texture prefetch and idle upload storage.
This suggests that physical RAM availability may be more relevant than commit headroom alone on my system.
Due to time constraints, I only performed one additional run, so I would not draw definitive conclusions yet. If you're interested, I can perform further controlled tests later.
Your findings regarding
VICTORY_HOMEare also particularly interesting. I'd be interested to see how much of that improvement could eventually be generalized and integrated upstream.Imported from readmet3xt-lab/foxhound. Originally posted by BrenoMazini on 2026-12-04T01:09:16Z.
Thank you for going back to it: the reboot, checking Resizable BAR, the larger pagefile and another run, all on short notice.
Your run shows that I put too much weight on commit headroom in my reply. Your commit went from about 91 % to 79 %, and neither the frame rate nor the picture improved. So commit headroom alone was not the difference, and I was wrong to suggest a larger pagefile as one of the two things that would remove most of the noise.
After reading your comment I went back to my own logs, and they point the same way as your conclusion about physical RAM:
So memory pressure probably does not explain why your runs didn't show the effect of 6 translators. The difference that remains is the path. With the port and the home, the card is the limit here, and the translators compete with the submitting thread for the CPU. On the stock path, the CPU limits every frame, as on your PC. Your new run used 8 translators only, so 6 against 8 on the stock path is still open for both of us.
Two things from my side:
About the home: I've opened #586 with everything I have on it. It covers what could be generalized and what can't (the values that come from the title), the questions I've asked the maintainers, and a "How you can help" section. Your PC may actually be the kind where it pays: an 8-core CPU, with the card at 60-69 % busy on the stock path in your runs here and in #532. So the first item there, the port on against off with the card profile's dispatch time and the submitting thread's preparing, would be especially useful from your system, whenever you have the time.