RTX 4070 SUPER, Ryzen 7 5700X: what limits the frame, VICTORY_PORT_CONSTANTS on a CPU-bound PC, and what did not help #532

Open
opened 2026-12-03 02:57:36 +00:00 by BrenoMazini · 7 comments
BrenoMazini commented 2026-12-03 02:57:36 +00:00 (Migrated from github.com)
Contributor

Imported from readmet3xt-lab/foxhound. Originally posted by BrenoMazini on 2026-12-03T02:57:36Z.


Update, 2026-12-03: controlled runs correct this report. VICTORY_PORT_CONSTANTS=1 alone gives no gain on this PC either: the +4-5 fps first reported here is withdrawn. GUARD_PAGES=1 with the port off gives +10.5 %. My fork's VICTORY_HOME with the port now nets about +2 fps. The sections on the port and the home, and question 1, are edited to match.

foxhound version: builds of my fork on v0.8.2 to v0.8.3.3 (main 7dbcdcb), release, with VICTORY_PROFILE for the card's times

GPU / CPU / RAM / Windows: GeForce RTX 4070 SUPER 12 GB (driver 621.24, PCIe Gen4 x16) / Ryzen 7 5700X (8 cores, 16 threads, one CCD) / 32 GB / Windows 11, build 26300

Launcher settings (resolution, DLSS, Frame Generation, VRAM limit): 3440x1440, Series X profile, DLSS Performance, no Frame Generation, no VRAM limit (the layer planned with 11,229 MB)

What happens, and when:

Slow frames in heavy scenes (14-18 fps), on a PC that is CPU-bound with the default switches. This is a report of measurements and three questions rather than one fault. The fixes found along the way are their own PRs: #525 (decoration bakes), #527 (journal reads without the lock, with VICTORY_REFRESH_TOP and VICTORY_GUARDS_TOP) and #531 (Quit and Restart from the launcher). If it helps, I can open this as a file in docs/ instead.

This is AI-assisted (Claude): the runs were played by hand, and a model read the logs. Every number below comes from the frame lines or the diagnostics of those logs.

The runs are free play, not replays. Draws per frame differ from run to run (about 5,000 to 7,500 indirect executions in the heavy scenes), so read differences under about 10 % between runs as nothing. Where two runs are compared, they used the same build, in the same part of the game, and differed only in the switch named.

Result

With VICTORY_PORT_CONSTANTS=1 and my fork's VICTORY_HOME=1 (see below):

median fps submitting thread ("preparing")
light scenes about 30 34-37 ms
heavy scenes, 6,000+ indirect executions a frame 14-18 median 45 ms, p90 69 ms

With the default switches this PC is CPU-bound: in a heavy scene the card was 50-60 % busy while the submitting thread prepared. With GUARD_PAGES=1 added to the defaults (4 KiB guard pages), the frame rate rose by about 10 % (12.4 → 13.7 fps in the controlled runs).

VICTORY_PORT_CONSTANTS=1 here: the limit moves to the card, the frame rate stays

The README says the port is slower overall on a 12 GB card. Here, in controlled runs (two of each, in alternating order, from the same spot along a scripted camera path), while turning the camera:

default VICTORY_PORT_CONSTANTS=1
fps 12.8 12.7
card busy 56 % 99 %
submitting thread, preparing 66.8 ms 34.2 ms
card: the title's lists 34.8 ms 76.3 ms
card: dispatches 8.5 ms 40.3 ms
card: indirect draws 16.1 ms 22.5 ms
copies of changed buffers 105 MB 34 MB

The port moves the limit from the processor to the card, and the card then holds the frame where the processor did: no gain on this PC either. The first version of this report showed 13.0 → 17.8 fps from one pair of free-play runs; those runs were not comparable, and that figure is withdrawn.

Where the port's extra card time goes

About 40 ms more of card time a frame in the controlled runs. Most of it is in the dispatches (8.5 to 40.3 ms), led by the title's culling compute programs.

  • They bind the title's large shared buffer whole, as SRV and UAV.
  • With the port, that buffer stays in the PC's memory, so the card reads it over PCIe.
  • Without the port, none of them is among the costliest programs (under 0.5 ms each). With it, in a denser run, the heaviest one takes a median of 15.8 ms (peaks of 24), and the next three take 3.8, 1.7 and 1.1 ms.
  • A page census of those programs (a diagnostic of my fork) showed that they all do atomics on the same few MiB of that buffer. On the PC's memory, every atomic is a non-posted PCIe round trip.
  • The census itself shows the cost: it adds one atomic OR per access, into a buffer in the PC's memory. With four programs counted the game fell from about 13 fps to 5.6, and with nine to 0.5.

Why the buffer cannot simply live on the card

  • A census of the whole buffer: the GPU writes about 16 MiB of it at known places. Eleven compute programs bind it whole as UAV, so where they write cannot be known from their views.
  • In the same 64 KiB pages, the CPU writes too (180 of the 258 pages the GPU writes) and reads back (133 of them). Most of these are the title's memcpy/memset and its own code, every frame.
  • So it is a heap shared between CPU and GPU, mixed below 64 KiB. Keeping it on the card would need syncing both ways, every frame, at that grain. That is the copy model the port replaced.

A limit of the architecture: no write watch in the port's memory

  • The title maps its graphics memory as physical pages, which xmem emulates with one section mapped into placeholders.
  • Windows only offers MEM_WRITE_WATCH on private memory. GetWriteWatch fails on those views.
  • So, with the port, there is no cheap way to know which pages of that memory the CPU wrote. The only way left is page-protection traps on the title's own view. That costs about 300+ faults a frame for 4 MiB alone, on the title's threads, and moves the cost to a processor that is already the limit in heavy scenes.

Where the submitting thread goes (heavy scene, port and VICTORY_HOME on)

Sample of a 56.8 ms frame, 6,074 indirect executions:

part ms
asking the write watch 13.2
refreshes of host copies (7,442 entries, 6,274 of them known to have nothing new) 20.7
copies and fills 6.8
copies in the card's memory 3.6
waiting for the submission lock 4.3
planning card steps, the rest about 4
  • Refreshes. No copy dominates: the costliest takes about 0.9 ms a frame, and the 12 costliest take about 6 ms together. The rest is a long tail of about 25 µs per copy.
    • The 8,000 or so checks per frame of copies known to copy nothing cost about 1 µs each.
    • A real refresh costs 15-26 µs, of which about 19 µs is the write watch and the guarded blocks.
    • The cost is per entry and per question, not in any one buffer.
  • The JOURNAL lock is not the critical path. Reading the journal without its lock (#527) made its reads nearly free and cut noting from 4.8-7.3 ms to 1.7 ms a frame, summed over threads. The submitting thread's mean stayed at 53 ms.
  • The guards' lock (VICTORY_GUARDS_TOP, in #527) costs the submitting thread 4-6 ms a frame.
    • Its large waits are on the title's file-read threads (kernel_writing), about 33 ms a frame summed.
    • Those waits do not correlate with frame spikes: r ≈ −0.01 over 251 one-second lines.
  • List translation: about 395 ms a frame summed over its threads, about 8 µs a call over 48,000 calls. It runs in parallel on 5-6 cores. It is not on the critical path, but on 8 cores it competes for them.

Where the spikes come from

In light scenes the game holds 30 fps; these were the frames over 100 ms and twice the median:

  • Startup: about 2,400 pipelines in the first 30 s, in two waves (spikes of 385-685 ms).
    • Translation-cache hits were 100 %, and the pipeline library was current.
    • About 1,300 of them are made again every session: these are the pipelines with static samplers, left out of the library on purpose for the NVIDIA driver's sampler-order problem.
    • During play, almost no pipeline is made.
  • Decoration bakes: 154-322 ms before a bake, from the pass over every texture slot due. Fixed in #525: 1-4 ms per bake.
  • The loading screen: about 5 s once, and entering the world: about 540-580 ms, with first binds and "the card has no room for more textures".
  • Heavy scenes: 115-320 ms over medians of 50-98 ms, with nothing in the log.

The culling's atomics kept on the card (my fork's VICTORY_HOME)

What it is. With the port, the title's large shared buffer lives in the PC's memory, and the culling programs do their atomics on it over PCIe. The home gives the few MiB those programs touch a second copy in the card's memory. The culling programs are translated to use that copy, and a small program of ours syncs it with the PC's copy before and after each submission that uses it.

Why it is not a PR. It has to know which ranges of that buffer to move and which programs to translate. Both come from my own measurements of this title: its memory layout and the hashes of its programs. The project doesn't ship title-specific data. A PR would have to find both at run time instead, and it would only help where the port itself is worth turning on, which the runs show is not most PCs.

  • In the controlled runs, the culling's dispatches fell from about 40 ms to 17-19 ms of card time a frame. The copy-ins cost 3.4-4.5 ms of that, 13-17 times a frame, each reading the whole range over PCIe.
  • It nets about +2 fps over the port alone (14.7 against 12.7 fps while turning), and puts about 8 ms back on the submitting thread. The card is still the limit (about 90 % busy).
  • Only about 2.3 % of its pages change between copy-ins, but without a write watch (see above) nothing says which.

It stays in the fork: its ranges come from the title, and it only applies with the port. (The first version of this report listed it under "Measured and not worth it", from free-play runs.)

Measured and not worth it

  • ExecuteIndirect arguments read from the card's copy: same cost per command (3.10 against 3.22 µs per indirect draw). Reading the arguments over PCIe was not the cost.
  • A mirror of only the culling's ranges, made before each culling sequence:
    • The title alternates culling and ExecuteIndirect about 40 times a frame, so the mirror is reloaded about 43 times a frame. That is more PCIe than the culling costs.
    • It also crashed the title at its first screen.
  • A second, compute, queue: a simulator fed with the card's times per list and the real waits between queues (382 windows) gave 99 % of one queue's time at the median, 93 % at best. The culling feeds the indirect draws, so almost nothing overlaps.
  • A D3D12_HEAP_TYPE_GPU_UPLOAD heap mapped by tiles over a reserved buffer, an experiment of another layer on this PC: Windows froze for two hours and needed a forced reset. Do not tile-map GPU_UPLOAD heaps.

Questions

  1. Has anyone measured VICTORY_PORT_CONSTANTS=1 on another CPU-bound PC? Here it gives +4-5 fps. Should the README's note say it depends on which of the two is the limit? Withdrawn: in controlled runs the port alone gives no gain here, and on another PC with less card headroom it loses outright.
  2. Is there a known reason the culling uses atomics in the PC's memory, for example append counters for the indirect arguments, that a translation-side change could keep on the card? (Partly answered in the comments: two shaders reserve list entries with atomic adds, and later indirect commands read those counters.)
  3. Is a heap shared below 64 KiB between CPU and GPU expected for this title? Is that what rules out keeping such buffers on the card everywhere, or only here?

Log: the numbers above are quoted from my logs; I can attach one, with the game folder replaced, if it helps.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:issue:6759599784 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/issues/532). Originally posted by [BrenoMazini](https://github.com/BrenoMazini) on 2026-12-03T02:57:36Z. --- > **Update, 2026-12-03:** [controlled runs](https://github.com/readmet3xt-lab/foxhound/issues/532#issuecomment-7380943742) correct this report. `VICTORY_PORT_CONSTANTS=1` alone gives **no gain** on this PC either: the +4-5 fps first reported here is withdrawn. `GUARD_PAGES=1` with the port off gives **+10.5 %**. My fork's `VICTORY_HOME` with the port now nets about +2 fps. The sections on the port and the home, and question 1, are edited to match. **foxhound version:** builds of my fork on v0.8.2 to v0.8.3.3 (main `7dbcdcb`), release, with `VICTORY_PROFILE` for the card's times **GPU / CPU / RAM / Windows:** GeForce RTX 4070 SUPER 12 GB (driver 621.24, PCIe Gen4 x16) / Ryzen 7 5700X (8 cores, 16 threads, one CCD) / 32 GB / Windows 11, build 26300 **Launcher settings (resolution, DLSS, Frame Generation, VRAM limit):** 3440x1440, Series X profile, DLSS Performance, no Frame Generation, no VRAM limit (the layer planned with 11,229 MB) **What happens, and when:** Slow frames in heavy scenes (14-18 fps), on a PC that is CPU-bound with the default switches. This is a report of measurements and three questions rather than one fault. The fixes found along the way are their own PRs: #525 (decoration bakes), #527 (journal reads without the lock, with `VICTORY_REFRESH_TOP` and `VICTORY_GUARDS_TOP`) and #531 (Quit and Restart from the launcher). If it helps, I can open this as a file in `docs/` instead. This is AI-assisted (Claude): the runs were played by hand, and a model read the logs. Every number below comes from the frame lines or the diagnostics of those logs. The runs are free play, not replays. Draws per frame differ from run to run (about 5,000 to 7,500 indirect executions in the heavy scenes), so read differences under about 10 % between runs as nothing. Where two runs are compared, they used the same build, in the same part of the game, and differed only in the switch named. ## Result With `VICTORY_PORT_CONSTANTS=1` and my fork's `VICTORY_HOME=1` (see below): | | median fps | submitting thread ("preparing") | |---|---|---| | light scenes | about 30 | 34-37 ms | | heavy scenes, 6,000+ indirect executions a frame | 14-18 | median 45 ms, p90 69 ms | With the default switches this PC is **CPU-bound**: in a heavy scene the card was 50-60 % busy while the submitting thread prepared. With `GUARD_PAGES=1` added to the defaults (4 KiB guard pages), the frame rate rose by about 10 % (12.4 → 13.7 fps in the [controlled runs](https://github.com/readmet3xt-lab/foxhound/issues/532#issuecomment-7380943742)). ## `VICTORY_PORT_CONSTANTS=1` here: the limit moves to the card, the frame rate stays The README says the port is slower overall on a 12 GB card. Here, in [controlled runs](https://github.com/readmet3xt-lab/foxhound/issues/532#issuecomment-7380943742) (two of each, in alternating order, from the same spot along a scripted camera path), while turning the camera: | | default | `VICTORY_PORT_CONSTANTS=1` | |---|---|---| | fps | 12.8 | 12.7 | | card busy | 56 % | 99 % | | submitting thread, preparing | 66.8 ms | 34.2 ms | | card: the title's lists | 34.8 ms | 76.3 ms | | card: dispatches | 8.5 ms | 40.3 ms | | card: indirect draws | 16.1 ms | 22.5 ms | | copies of changed buffers | 105 MB | 34 MB | The port moves the limit from the processor to the card, and the card then holds the frame where the processor did: no gain on this PC either. The first version of this report showed 13.0 → 17.8 fps from one pair of free-play runs; those runs were not comparable, and that figure is withdrawn. ### Where the port's extra card time goes About 40 ms more of card time a frame in the controlled runs. Most of it is in the dispatches (8.5 to 40.3 ms), led by **the title's culling compute programs**. - They bind the title's large shared buffer whole, as SRV and UAV. - With the port, that buffer stays in the PC's memory, so the card reads it over PCIe. - Without the port, none of them is among the costliest programs (under 0.5 ms each). With it, in a denser run, the heaviest one takes a median of 15.8 ms (peaks of 24), and the next three take 3.8, 1.7 and 1.1 ms. - A page census of those programs (a diagnostic of my fork) showed that they all do **atomics** on the same few MiB of that buffer. On the PC's memory, every atomic is a non-posted PCIe round trip. - The census itself shows the cost: it adds one atomic OR per access, into a buffer in the PC's memory. With four programs counted the game fell from about 13 fps to 5.6, and with nine to 0.5. ### Why the buffer cannot simply live on the card - A census of the whole buffer: the GPU writes about 16 MiB of it at known places. Eleven compute programs bind it whole as UAV, so where they write cannot be known from their views. - In the same 64 KiB pages, the CPU writes too (180 of the 258 pages the GPU writes) and reads back (133 of them). Most of these are the title's `memcpy`/`memset` and its own code, every frame. - So it is a heap shared between CPU and GPU, mixed below 64 KiB. Keeping it on the card would need syncing both ways, every frame, at that grain. That is the copy model the port replaced. ### A limit of the architecture: no write watch in the port's memory - The title maps its graphics memory as physical pages, which `xmem` emulates with one section mapped into placeholders. - Windows only offers `MEM_WRITE_WATCH` on private memory. `GetWriteWatch` fails on those views. - So, with the port, there is no cheap way to know which pages of that memory the CPU wrote. The only way left is page-protection traps on the title's own view. That costs about 300+ faults a frame for 4 MiB alone, on the title's threads, and moves the cost to a processor that is already the limit in heavy scenes. ## Where the submitting thread goes (heavy scene, port and `VICTORY_HOME` on) Sample of a 56.8 ms frame, 6,074 indirect executions: | part | ms | |---|---| | asking the write watch | 13.2 | | refreshes of host copies (7,442 entries, 6,274 of them known to have nothing new) | 20.7 | | copies and fills | 6.8 | | copies in the card's memory | 3.6 | | waiting for the submission lock | 4.3 | | planning card steps, the rest | about 4 | - **Refreshes.** No copy dominates: the costliest takes about 0.9 ms a frame, and the 12 costliest take about 6 ms together. The rest is a long tail of about 25 µs per copy. - The 8,000 or so checks per frame of copies known to copy nothing cost about 1 µs each. - A real refresh costs 15-26 µs, of which about 19 µs is the write watch and the guarded blocks. - The cost is per entry and per question, not in any one buffer. - **The `JOURNAL` lock is not the critical path.** Reading the journal without its lock (#527) made its reads nearly free and cut noting from 4.8-7.3 ms to 1.7 ms a frame, summed over threads. The submitting thread's mean stayed at 53 ms. - **The guards' lock** (`VICTORY_GUARDS_TOP`, in #527) costs the submitting thread 4-6 ms a frame. - Its large waits are on the title's file-read threads (`kernel_writing`), about 33 ms a frame summed. - Those waits do not correlate with frame spikes: r ≈ −0.01 over 251 one-second lines. - **List translation**: about 395 ms a frame summed over its threads, about 8 µs a call over 48,000 calls. It runs in parallel on 5-6 cores. It is not on the critical path, but on 8 cores it competes for them. ## Where the spikes come from In light scenes the game holds 30 fps; these were the frames over 100 ms and twice the median: - **Startup**: about 2,400 pipelines in the first 30 s, in two waves (spikes of 385-685 ms). - Translation-cache hits were 100 %, and the pipeline library was current. - About 1,300 of them are made again every session: these are the pipelines with static samplers, left out of the library on purpose for the NVIDIA driver's sampler-order problem. - During play, almost no pipeline is made. - **Decoration bakes**: 154-322 ms before a bake, from the pass over every texture slot due. Fixed in #525: 1-4 ms per bake. - **The loading screen**: about 5 s once, and **entering the world**: about 540-580 ms, with first binds and "the card has no room for more textures". - **Heavy scenes**: 115-320 ms over medians of 50-98 ms, with nothing in the log. ## The culling's atomics kept on the card (my fork's `VICTORY_HOME`) **What it is.** With the port, the title's large shared buffer lives in the PC's memory, and the culling programs do their atomics on it over PCIe. The home gives the few MiB those programs touch a second copy in the card's memory. The culling programs are translated to use that copy, and a small program of ours syncs it with the PC's copy before and after each submission that uses it. **Why it is not a PR.** It has to know which ranges of that buffer to move and which programs to translate. Both come from my own measurements of this title: its memory layout and the hashes of its programs. The project doesn't ship title-specific data. A PR would have to find both at run time instead, and it would only help where the port itself is worth turning on, which the runs show is not most PCs. - In the [controlled runs](https://github.com/readmet3xt-lab/foxhound/issues/532#issuecomment-7380943742), the culling's dispatches fell from about 40 ms to 17-19 ms of card time a frame. The copy-ins cost 3.4-4.5 ms of that, 13-17 times a frame, each reading the whole range over PCIe. - It nets about +2 fps over the port alone (14.7 against 12.7 fps while turning), and puts about 8 ms back on the submitting thread. The card is still the limit (about 90 % busy). - Only about 2.3 % of its pages change between copy-ins, but without a write watch (see above) nothing says which. It stays in the fork: its ranges come from the title, and it only applies with the port. (The first version of this report listed it under "Measured and not worth it", from free-play runs.) ## Measured and not worth it - **`ExecuteIndirect` arguments read from the card's copy**: same cost per command (3.10 against 3.22 µs per indirect draw). Reading the arguments over PCIe was not the cost. - **A mirror of only the culling's ranges, made before each culling sequence**: - The title alternates culling and `ExecuteIndirect` about 40 times a frame, so the mirror is reloaded about 43 times a frame. That is more PCIe than the culling costs. - It also crashed the title at its first screen. - **A second, compute, queue**: a simulator fed with the card's times per list and the real waits between queues (382 windows) gave **99 % of one queue's time** at the median, 93 % at best. The culling feeds the indirect draws, so almost nothing overlaps. - **A `D3D12_HEAP_TYPE_GPU_UPLOAD` heap mapped by tiles over a reserved buffer**, an experiment of another layer on this PC: Windows froze for two hours and needed a forced reset. Do not tile-map GPU_UPLOAD heaps. ## Questions 1. ~~Has anyone measured `VICTORY_PORT_CONSTANTS=1` on another CPU-bound PC? Here it gives +4-5 fps. Should the README's note say it depends on which of the two is the limit?~~ Withdrawn: in [controlled runs](https://github.com/readmet3xt-lab/foxhound/issues/532#issuecomment-7380943742) the port alone gives no gain here, and on another PC with less card headroom it loses outright. 2. Is there a known reason the culling uses atomics in the PC's memory, for example append counters for the indirect arguments, that a translation-side change could keep on the card? (Partly answered in the comments: two shaders reserve list entries with atomic adds, and later indirect commands read those counters.) 3. Is a heap shared below 64 KiB between CPU and GPU expected for this title? Is that what rules out keeping such buffers on the card everywhere, or only here? **Log:** the numbers above are quoted from my logs; I can attach one, with the game folder replaced, if it helps.
tavochivix commented 2026-12-03 11:49:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from readmet3xt-lab/foxhound. Originally posted by tavochivix on 2026-12-03T11:49:08Z.


Here are results from another machine, a Ryzen 5 5600X and RTX 5070 Ti. These runs used the Series X settings, 3840×2160 output, the game's upscaler, and frame generation off. The scene and upscaler differ from the free-play report. We tested the public memory options with no VICTORY_HOME changes.

CPU versus GPU limits. On public commit 7dbcdcb, enabling VICTORY_PORT_CONSTANTS in the opening sequence cut median buffer refresh time from 16.7 to 9.3 ms/frame. The median wait for the GPU rose from 0.5 to 123.8 ms/frame, and rendered FPS fell from 21.3 to 5.6. Together with the 13.0 → 17.8 FPS you measured, this supports describing both costs in the README.

A setting worth testing on the 4070 SUPER. On a local release build, we ran all four combinations twice from the same save and renderer cache, in reverse order on the second pass. Each run measured the same 60-second opening sequence. The table pools frames and elapsed time across both runs.

How the GPU accessed the constants heap Default tracking 4 KiB tracking
Default, copy updated data to VRAM 21.71 FPS 24.51 FPS
Direct system-memory access (PORT_CONSTANTS=1) 5.79 FPS 5.74 FPS

Pairing opening-sequence intervals by scene time and draw count and excluding pipeline activity gave the same pattern. With the port off, finer tracking improved FPS by 16.3% and 12.4% across the two passes. With the port on, the changes were +0.55% and −0.36%.

On the CPU-heavy bridge, in 24 intervals matched on scene time, draw count and dropped calls with no observed pipeline activity, finer tracking reduced refresh copies from 108.2 to 28.6 MiB/frame and raised FPS from 15.13 to 17.22. Only one default-tracking run stayed in the dense scene. A separate run that alternated tracking modes also favored finer tracking (15.29 → 16.62 FPS). To try this comparison on the original machine, leave PORT_CONSTANTS off and enter GUARD_PAGES=1 under Further switches in the launcher.

Separately, the local build skips redundant texture-preparation work by default. With the memory settings held fixed, enabling those changes raised rendered FPS from 17.04 to 17.67 in 28 matched intervals in the dense opening. The full-minute averages were slightly lower in both pairs (21.37 → 21.32 and 21.85 → 21.47).

What we saw in the culling data. Two captured shaders reserve list entries with atomic adds. Later indirect commands in the same list consume the exact counter words as a draw's instance count and a dispatch's X group count. The three compute shaders we timed slowing down in the opening sequence contained no atomics. The four costly shaders in your report remain unidentified here.

The 64 KiB unit is the mapping granularity. The CPU and GPU can address words within each page. Ten CPU copies reached the page containing one draw counter and stopped short of its four bytes. A separate append counter and its list were outside the shared heap. Keeping a particular counter in VRAM would require accounting for any CPU readers and writers of those bytes and their ordering.

Follow-up on unmodified public main (7dbcdcb). We repeated the guard-page comparison on this same 5600X/5070 Ti using the public code, with the constants port off. Four runs used the same save and renderer cache, in default / 4 KiB / 4 KiB / default order. In the 60-second opening sequence, the two pairs went from 22.49 to 25.05 FPS and from 22.28 to 25.07 FPS. Across the two runs per setting that is 22.39 → 25.06 FPS (+11.9%). Median refresh copies fell from 60.6 to 17.1 and from 59.7 to 18.3 MiB/frame. Matching intervals on scene time and draw count and excluding logged pipeline activity still gave gains of 9.6% and 13.6%. This comparison used the existing launcher switch and does not require the local texture changes.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:comment:7377219128 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/issues/532#issuecomment-7377219128). Originally posted by [tavochivix](https://github.com/tavochivix) on 2026-12-03T11:49:08Z. --- Here are results from another machine, a Ryzen 5 5600X and RTX 5070 Ti. These runs used the Series X settings, 3840×2160 output, the game's upscaler, and frame generation off. The scene and upscaler differ from the free-play report. We tested the public memory options with no `VICTORY_HOME` changes. **CPU versus GPU limits.** On public commit `7dbcdcb`, enabling `VICTORY_PORT_CONSTANTS` in the opening sequence cut median buffer refresh time from 16.7 to 9.3 ms/frame. The median wait for the GPU rose from 0.5 to 123.8 ms/frame, and rendered FPS fell from 21.3 to 5.6. Together with the 13.0 → 17.8 FPS you measured, this supports describing both costs in the README. **A setting worth testing on the 4070 SUPER.** On a local release build, we ran all four combinations twice from the same save and renderer cache, in reverse order on the second pass. Each run measured the same 60-second opening sequence. The table pools frames and elapsed time across both runs. | How the GPU accessed the constants heap | Default tracking | 4 KiB tracking | | --- | ---: | ---: | | Default, copy updated data to VRAM | 21.71 FPS | 24.51 FPS | | Direct system-memory access (`PORT_CONSTANTS=1`) | 5.79 FPS | 5.74 FPS | Pairing opening-sequence intervals by scene time and draw count and excluding pipeline activity gave the same pattern. With the port off, finer tracking improved FPS by 16.3% and 12.4% across the two passes. With the port on, the changes were +0.55% and −0.36%. On the CPU-heavy bridge, in 24 intervals matched on scene time, draw count and dropped calls with no observed pipeline activity, finer tracking reduced refresh copies from 108.2 to 28.6 MiB/frame and raised FPS from 15.13 to 17.22. Only one default-tracking run stayed in the dense scene. A separate run that alternated tracking modes also favored finer tracking (15.29 → 16.62 FPS). To try this comparison on the original machine, leave `PORT_CONSTANTS` off and enter `GUARD_PAGES=1` under **Further switches** in the launcher. Separately, the local build skips redundant texture-preparation work by default. With the memory settings held fixed, enabling those changes raised rendered FPS from 17.04 to 17.67 in 28 matched intervals in the dense opening. The full-minute averages were slightly lower in both pairs (21.37 → 21.32 and 21.85 → 21.47). **What we saw in the culling data.** Two captured shaders reserve list entries with atomic adds. Later indirect commands in the same list consume the exact counter words as a draw's instance count and a dispatch's X group count. The three compute shaders we timed slowing down in the opening sequence contained no atomics. The four costly shaders in your report remain unidentified here. The 64 KiB unit is the mapping granularity. The CPU and GPU can address words within each page. Ten CPU copies reached the page containing one draw counter and stopped short of its four bytes. A separate append counter and its list were outside the shared heap. Keeping a particular counter in VRAM would require accounting for any CPU readers and writers of those bytes and their ordering. **Follow-up on unmodified public `main` (`7dbcdcb`).** We repeated the guard-page comparison on this same 5600X/5070 Ti using the public code, with the constants port off. Four runs used the same save and renderer cache, in default / 4 KiB / 4 KiB / default order. In the 60-second opening sequence, the two pairs went from 22.49 to 25.05 FPS and from 22.28 to 25.07 FPS. Across the two runs per setting that is 22.39 → 25.06 FPS (+11.9%). Median refresh copies fell from 60.6 to 17.1 and from 59.7 to 18.3 MiB/frame. Matching intervals on scene time and draw count and excluding logged pipeline activity still gave gains of 9.6% and 13.6%. This comparison used the existing launcher switch and does not require the local texture changes.
BrenoMazini commented 2026-12-03 12:50:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from readmet3xt-lab/foxhound. Originally posted by BrenoMazini on 2026-12-03T12:50:48Z.


Thank you for the careful runs, and for the 4 KiB tracking comparison.

A heads-up before anyone builds on my numbers: I'm redoing my measurements under tighter control, and some of what the report says will change. In particular, the 13.0 → 17.8 fps for VICTORY_PORT_CONSTANTS=1 does not hold up so far. In a controlled run, with the configurations alternated, the port alone gives about the same frame rate as the defaults here. It moves the limit from the processor to the card, which matches what you saw.

I'll post the corrected numbers in this issue once the runs are done, including GUARD_PAGES=1 with the port off as you suggested. With the defaults my copies of changed buffers are about 105 MB a frame, close to the 108 MiB in your CPU-heavy scene, so I expect it to matter here too. A new PR with further adjustments will probably follow.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:comment:7378926439 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/issues/532#issuecomment-7378926439). Originally posted by [BrenoMazini](https://github.com/BrenoMazini) on 2026-12-03T12:50:48Z. --- Thank you for the careful runs, and for the 4 KiB tracking comparison. A heads-up before anyone builds on my numbers: I'm redoing my measurements under tighter control, and some of what the report says will change. In particular, the 13.0 → 17.8 fps for `VICTORY_PORT_CONSTANTS=1` does not hold up so far. In a controlled run, with the configurations alternated, the port alone gives about the same frame rate as the defaults here. It moves the limit from the processor to the card, which matches what you saw. I'll post the corrected numbers in this issue once the runs are done, including `GUARD_PAGES=1` with the port off as you suggested. With the defaults my copies of changed buffers are about 105 MB a frame, close to the 108 MiB in your CPU-heavy scene, so I expect it to matter here too. A new PR with further adjustments will probably follow.
BrenoMazini commented 2026-12-03 14:08:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from readmet3xt-lab/foxhound. Originally posted by BrenoMazini on 2026-12-03T14:08:03Z.


Controlled runs: the constants port, 4 KiB guard pages and the home. This corrects the section on the port.

As promised above, I redid the measurements under control: 14 runs in two series, in alternating order, with the same spot, the same scripted camera path and the same build.

In short

  • VICTORY_PORT_CONSTANTS=1 alone does not raise the frame rate on this PC. It gives 12.7 fps against 12.8 with the defaults. The +4-5 fps in the report came from two runs that were not comparable. I withdraw it, and question 1 with it: the README's caution holds here too. The port moves the limit from the processor to the card (56 % → 99 % busy), and the card then holds the frame where the processor did.
  • GUARD_PAGES=1 with the port off is the clean gain: +10.5 % (12.4 → 13.7 fps). The copies of changed buffers fall from 140 to 52 MB a frame. No run of one setting overlaps the other. This matches @tavochivix's +11.9 % on a Ryzen 5 5600X with an RTX 5070 Ti, so the gain shows on two machines.
  • The port with my fork's VICTORY_HOME is the fastest here: 15.1 fps against 12.4 with the defaults on the same day (+22 %). In the report I listed the home under "Measured and not worth it". Its copy-ins have become cheaper since, and it now pays. It still stays in the fork (see below).
  • GUARD_PAGES=1 adds nothing on top of the port and the home (15.1 against 15.1 fps). There the card is the limit, and with the port there is far less left to copy. This also matches what @tavochivix saw with the port on.
fps while turning (mean of 2 runs) defaults GUARD_PAGES=1
port off 12.4 (12.8 in series 1) 13.7
port alone 12.7 not run
port + home 15.1 (14.7 in series 1) 15.1

How it was measured

  • PC and settings: RTX 4070 SUPER 12 GB, Ryzen 7 5700X, 32 GB, Windows 11. Series X profile, 3440x1440, DLSS Performance, no frame generation.
  • Build: my fork on v0.8.3.3 (main 7dbcdcb with #525, #527 and the home). The 4 KiB guard-page code is main's; around it my build adds only #527's lock-free journal reads.
  • Switches in every run: VICTORY_PROFILE=1 and VICTORY_PROFILE_TOP=1 (the card's time by kind and by program), VICTORY_BAKE_PASS_MS=0, and VICTORY_KEYS_FILE for the input. Only the switches named below differ between configurations.
switches on top of those
A none (defaults)
B PORT_CONSTANTS=1
C PORT_CONSTANTS=1, HOME=1
AG GUARD_PAGES=1
CG PORT_CONSTANTS=1, HOME=1, GUARD_PAGES=1
  • Two series, the same day:
    • series 1: A B C C B A;
    • series 2: A AG AG A, then C CG CG C.
  • Each run: a fresh start of the game. I walked by hand to the same spot in a heavy scene, faced the same way and waited at least 30 s for textures and pipelines to settle. From a key press on, the input came only from VICTORY_KEYS_FILE, with no hand on mouse or keyboard:
    • 20 s to settle (not counted);
    • 60 s standing still;
    • 24 s turning the camera: 12 s right, then 12 s back.
  • What is counted:
    • fps is the frames over the seconds of each phase, from the per-second frame-time lines;
    • every other value is the median of the 5-second lines in that phase (card busy, the card profile, the submitting thread's preparing line, copies).
  • The world fills differently on each load, so the scene's density changes from run to run at the same spot.
    • Standing still: 3,750 to 7,800 indirect executions a frame, which is too wide to compare.
    • Turning: 6,250 to 7,800.
    • So I read the turning phase. Each pair of runs of one setting shows its own spread, and a difference smaller than that spread is noise.
  • As in the report, the runs and the configuration were mine and a model (Claude) read the logs. Every number comes from the logs.
Series 1, turning: defaults, port, port + home
A: defaults B: port C: port + home
fps (run 1 / run 2) 12.5 / 13.1 13.2 / 12.2 15.0 / 14.3
mean fps 12.8 12.7 14.7
frame, median / p95 77.6 / 113.8 ms 80.1 / 108.8 ms 71.5 / 107.4 ms
indirect executions a frame 7,003 7,161 7,080
card busy 56 % 99 % 91 %
card: the title's lists 34.8 ms 76.3 ms 54.5 ms
card: dispatches 8.5 ms 40.3 ms 19.2 ms
card: indirect draws 16.1 ms 22.5 ms 22.7 ms
submitting thread, preparing 66.8 ms 34.2 ms 42.7 ms
asking the write watch 12.1 ms 5.9 ms 10.7 ms
refreshes 26.1 ms 5.6 ms 10.5 ms
copies of changed buffers 33.1 ms, 105 MB 9.7 ms, 34 MB 17.1 ms, 39 MB
copying back 13.1 ms 7.5 ms 10.5 ms
home copy-ins 13.6 a frame, 3.4 ms of card time
Series 2, turning: the 4 KiB guard pages with and without the port and home
A: defaults AG: GUARD_PAGES=1 C: port + home CG: C + GUARD_PAGES=1
fps (run 1 / run 2) 12.2 / 12.7 13.9 / 13.5 15.0 / 15.2 15.6 / 14.7
mean fps 12.4 13.7 15.1 15.1
frame, median 83.7 ms 74.2 ms 67.7 ms 67.7 ms
frame, p95 96.4 ms 86.0 ms 104.8 ms 110.7 ms
indirect executions a frame (run 1 / run 2) 7,788 / 6,935 7,353 / 6,582 6,623 / 6,362 6,248 / 6,495
card busy 57 % 58 % 88 % 86 %
card: the title's lists 35.7 ms 35.0 ms 48.7 ms 48.5 ms
card: dispatches 9.0 ms 9.1 ms 16.7 ms 17.0 ms
submitting thread, preparing 74.2 ms 64.7 ms 43.9 ms 45.0 ms
asking the write watch 12.0 ms 17.3 ms 11.4 ms 14.0 ms
refreshes 27.2 ms 22.3 ms 11.1 ms 11.1 ms
copies of changed buffers 35.9 ms, 140 MB 29.0 ms, 52 MB 17.4 ms, 39 MB 18.1 ms, 36 MB
copying back 14.2 ms 10.8 ms 12.2 ms 12.5 ms
write faults that opened one 4 KiB page 3,370 a frame 1,120 a frame
blocks opened whole 515 a frame 81 a frame
home copy-ins 16.2 a frame, 4.1 ms 15.9 a frame, 4.0 ms

What the runs show

The port.

  • It does what the report said: the submitting thread prepares for half as long (67 → 34 ms) and the copies fall from 105 to 34 MB a frame.
  • But the card goes from 56 % to 99 % busy. Its dispatches go from 8.5 to 40 ms, the culling reading the shared buffer over PCIe.
  • So the frame rate stays where it was. On a card with less headroom, as on @tavochivix's PC at 4K (21.3 → 5.6 fps), the port loses outright.
  • I'd read the README's note as right in general, with one nuance: the port only stops losing on a PC whose card has room to spare, and even there it does not gain.

The 4 KiB guard pages, port off.

  • The copies of changed buffers fall to about a third (140 → 52 MB a frame, 35.9 → 29.0 ms).
  • Refreshes fall from 27.2 to 22.3 ms and copying back from 14.2 to 10.8 ms. In all, the submitting thread prepares 9.5 ms less a frame.
  • The cost is about 5 ms more of asking the write watch, from about 3,400 write faults a frame that open one page and 515 blocks opened whole.
  • The card stays at 57 %, so the processor is still the limit, and the frame is 11 % shorter.
  • The p95 is the best of all the configurations: 86 ms.
  • The weaker AG run (13.5 fps) is still above the stronger A run (12.7). The second A run had a density (6,935) between those of the two AG runs, so the scene does not explain the gap.

The guard pages with the port and the home.

  • Here the card is the limit (86-88 % busy). With the port, most of what was copied is read in place, and the guard pages see a third of the faults (1,120 against 3,370 a frame).
  • They save 3 MB of copies a frame but add about 2.6 ms of asking, so the submitting thread prepares about as long (43.9 against 45.0 ms). The card time and the median frame (67.7 ms) are the same in both.

The home.

  • It takes the culling's dispatches from about 40 ms to 17-19 ms of card time a frame. Its copy-ins cost 3.4-4.5 ms of that, 13-17 times a frame.
  • It puts about 8 ms back on the submitting thread against the port alone (write-watch asking, refreshes and copies). The card is still the limit, so that costs no frames here.
  • The port with the home has the best median frame but more long frames than AG (p95 of 105-111 ms against 86).
  • It stays in the fork: its ranges and programs come from the title, and it only applies with the port.

I saw no visual faults in the AG and CG runs: no flicker, broken faces or missing objects.

On the report's questions

  1. Withdrawn, as above: the port alone gives no gain here. @tavochivix's numbers show the other side.
  2. Partly answered by @tavochivix's look at the culling: two shaders reserve list entries with atomic adds, and later indirect commands read those counters as a draw's instance count and a dispatch's group count.
  3. Still open: whether a heap shared below 64 KiB between CPU and GPU is expected for this title.

The report's result for the port with the home (14-18 fps in heavy scenes) still stands: these runs gave 14.3-15.6 while turning.

A question for the maintainers: on two machines GUARD_PAGES=1 gives 10-12 % with the port off, and nothing with it on. Would a PR that turns it on from the launcher be welcome, as STORE_BESIDE is now? Or should it stay a documented switch, as #560 proposes? (I've asked in #560 to drop the 13.0 → 17.8 sentence.)

I can attach the logs of these runs, with the game folder replaced by <game>, if that helps.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:comment:7380943742 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/issues/532#issuecomment-7380943742). Originally posted by [BrenoMazini](https://github.com/BrenoMazini) on 2026-12-03T14:08:03Z. --- **Controlled runs: the constants port, 4 KiB guard pages and the home. This corrects the section on the port.** As promised above, I redid the measurements under control: 14 runs in two series, in alternating order, with the same spot, the same scripted camera path and the same build. **In short** - **`VICTORY_PORT_CONSTANTS=1` alone does not raise the frame rate on this PC.** It gives 12.7 fps against 12.8 with the defaults. The +4-5 fps in the report came from two runs that were not comparable. I withdraw it, and question 1 with it: the README's caution holds here too. The port moves the limit from the processor to the card (56 % → 99 % busy), and the card then holds the frame where the processor did. - **`GUARD_PAGES=1` with the port off is the clean gain: +10.5 %** (12.4 → 13.7 fps). The copies of changed buffers fall from 140 to 52 MB a frame. No run of one setting overlaps the other. This matches @tavochivix's +11.9 % on a Ryzen 5 5600X with an RTX 5070 Ti, so the gain shows on two machines. - **The port with my fork's `VICTORY_HOME` is the fastest here: 15.1 fps** against 12.4 with the defaults on the same day (+22 %). In the report I listed the home under "Measured and not worth it". Its copy-ins have become cheaper since, and it now pays. It still stays in the fork (see below). - **`GUARD_PAGES=1` adds nothing on top of the port and the home** (15.1 against 15.1 fps). There the card is the limit, and with the port there is far less left to copy. This also matches what @tavochivix saw with the port on. | fps while turning (mean of 2 runs) | defaults | `GUARD_PAGES=1` | |---|---|---| | port off | 12.4 (12.8 in series 1) | **13.7** | | port alone | 12.7 | not run | | port + home | 15.1 (14.7 in series 1) | 15.1 | **How it was measured** - **PC and settings:** RTX 4070 SUPER 12 GB, Ryzen 7 5700X, 32 GB, Windows 11. Series X profile, 3440x1440, DLSS Performance, no frame generation. - **Build:** my fork on v0.8.3.3 (main 7dbcdcb with #525, #527 and the home). The 4 KiB guard-page code is main's; around it my build adds only #527's lock-free journal reads. - **Switches in every run:** `VICTORY_PROFILE=1` and `VICTORY_PROFILE_TOP=1` (the card's time by kind and by program), `VICTORY_BAKE_PASS_MS=0`, and `VICTORY_KEYS_FILE` for the input. Only the switches named below differ between configurations. | | switches on top of those | |---|---| | A | none (defaults) | | B | `PORT_CONSTANTS=1` | | C | `PORT_CONSTANTS=1`, `HOME=1` | | AG | `GUARD_PAGES=1` | | CG | `PORT_CONSTANTS=1`, `HOME=1`, `GUARD_PAGES=1` | - **Two series, the same day:** - series 1: A B C C B A; - series 2: A AG AG A, then C CG CG C. - **Each run:** a fresh start of the game. I walked by hand to the same spot in a heavy scene, faced the same way and waited at least 30 s for textures and pipelines to settle. From a key press on, the input came only from `VICTORY_KEYS_FILE`, with no hand on mouse or keyboard: - 20 s to settle (not counted); - 60 s standing still; - 24 s turning the camera: 12 s right, then 12 s back. - **What is counted:** - fps is the frames over the seconds of each phase, from the per-second frame-time lines; - every other value is the median of the 5-second lines in that phase (card busy, the card profile, the submitting thread's preparing line, copies). - **The world fills differently on each load**, so the scene's density changes from run to run at the same spot. - Standing still: 3,750 to 7,800 indirect executions a frame, which is too wide to compare. - Turning: 6,250 to 7,800. - So I read the turning phase. Each pair of runs of one setting shows its own spread, and a difference smaller than that spread is noise. - As in the report, the runs and the configuration were mine and a model (Claude) read the logs. Every number comes from the logs. <details> <summary>Series 1, turning: defaults, port, port + home</summary> | | A: defaults | B: port | C: port + home | |---|---|---|---| | fps (run 1 / run 2) | 12.5 / 13.1 | 13.2 / 12.2 | 15.0 / 14.3 | | mean fps | 12.8 | 12.7 | **14.7** | | frame, median / p95 | 77.6 / 113.8 ms | 80.1 / 108.8 ms | 71.5 / 107.4 ms | | indirect executions a frame | 7,003 | 7,161 | 7,080 | | card busy | 56 % | 99 % | 91 % | | card: the title's lists | 34.8 ms | 76.3 ms | 54.5 ms | | card: dispatches | 8.5 ms | 40.3 ms | 19.2 ms | | card: indirect draws | 16.1 ms | 22.5 ms | 22.7 ms | | submitting thread, preparing | 66.8 ms | 34.2 ms | 42.7 ms | | asking the write watch | 12.1 ms | 5.9 ms | 10.7 ms | | refreshes | 26.1 ms | 5.6 ms | 10.5 ms | | copies of changed buffers | 33.1 ms, 105 MB | 9.7 ms, 34 MB | 17.1 ms, 39 MB | | copying back | 13.1 ms | 7.5 ms | 10.5 ms | | home copy-ins | | | 13.6 a frame, 3.4 ms of card time | </details> <details> <summary>Series 2, turning: the 4 KiB guard pages with and without the port and home</summary> | | A: defaults | AG: `GUARD_PAGES=1` | C: port + home | CG: C + `GUARD_PAGES=1` | |---|---|---|---|---| | fps (run 1 / run 2) | 12.2 / 12.7 | 13.9 / 13.5 | 15.0 / 15.2 | 15.6 / 14.7 | | mean fps | 12.4 | **13.7** | **15.1** | 15.1 | | frame, median | 83.7 ms | 74.2 ms | 67.7 ms | 67.7 ms | | frame, p95 | 96.4 ms | **86.0 ms** | 104.8 ms | 110.7 ms | | indirect executions a frame (run 1 / run 2) | 7,788 / 6,935 | 7,353 / 6,582 | 6,623 / 6,362 | 6,248 / 6,495 | | card busy | 57 % | 58 % | 88 % | 86 % | | card: the title's lists | 35.7 ms | 35.0 ms | 48.7 ms | 48.5 ms | | card: dispatches | 9.0 ms | 9.1 ms | 16.7 ms | 17.0 ms | | submitting thread, preparing | 74.2 ms | 64.7 ms | 43.9 ms | 45.0 ms | | asking the write watch | 12.0 ms | 17.3 ms | 11.4 ms | 14.0 ms | | refreshes | 27.2 ms | 22.3 ms | 11.1 ms | 11.1 ms | | copies of changed buffers | 35.9 ms, 140 MB | 29.0 ms, 52 MB | 17.4 ms, 39 MB | 18.1 ms, 36 MB | | copying back | 14.2 ms | 10.8 ms | 12.2 ms | 12.5 ms | | write faults that opened one 4 KiB page | | 3,370 a frame | | 1,120 a frame | | blocks opened whole | | 515 a frame | | 81 a frame | | home copy-ins | | | 16.2 a frame, 4.1 ms | 15.9 a frame, 4.0 ms | </details> **What the runs show** *The port.* - It does what the report said: the submitting thread prepares for half as long (67 → 34 ms) and the copies fall from 105 to 34 MB a frame. - But the card goes from 56 % to 99 % busy. Its dispatches go from 8.5 to 40 ms, the culling reading the shared buffer over PCIe. - So the frame rate stays where it was. On a card with less headroom, as on @tavochivix's PC at 4K (21.3 → 5.6 fps), the port loses outright. - I'd read the README's note as right in general, with one nuance: the port only stops losing on a PC whose card has room to spare, and even there it does not gain. *The 4 KiB guard pages, port off.* - The copies of changed buffers fall to about a third (140 → 52 MB a frame, 35.9 → 29.0 ms). - Refreshes fall from 27.2 to 22.3 ms and copying back from 14.2 to 10.8 ms. In all, the submitting thread prepares 9.5 ms less a frame. - The cost is about 5 ms more of asking the write watch, from about 3,400 write faults a frame that open one page and 515 blocks opened whole. - The card stays at 57 %, so the processor is still the limit, and the frame is 11 % shorter. - **The p95 is the best of all the configurations: 86 ms.** - The weaker AG run (13.5 fps) is still above the stronger A run (12.7). The second A run had a density (6,935) between those of the two AG runs, so the scene does not explain the gap. *The guard pages with the port and the home.* - Here the card is the limit (86-88 % busy). With the port, most of what was copied is read in place, and the guard pages see a third of the faults (1,120 against 3,370 a frame). - They save 3 MB of copies a frame but add about 2.6 ms of asking, so the submitting thread prepares about as long (43.9 against 45.0 ms). The card time and the median frame (67.7 ms) are the same in both. *The home.* - It takes the culling's dispatches from about 40 ms to 17-19 ms of card time a frame. Its copy-ins cost 3.4-4.5 ms of that, 13-17 times a frame. - It puts about 8 ms back on the submitting thread against the port alone (write-watch asking, refreshes and copies). The card is still the limit, so that costs no frames here. - The port with the home has the best median frame but more long frames than AG (p95 of 105-111 ms against 86). - It stays in the fork: its ranges and programs come from the title, and it only applies with the port. I saw no visual faults in the AG and CG runs: no flicker, broken faces or missing objects. **On the report's questions** 1. Withdrawn, as above: the port alone gives no gain here. @tavochivix's numbers show the other side. 2. Partly answered by @tavochivix's look at the culling: two shaders reserve list entries with atomic adds, and later indirect commands read those counters as a draw's instance count and a dispatch's group count. 3. Still open: whether a heap shared below 64 KiB between CPU and GPU is expected for this title. The report's result for the port with the home (14-18 fps in heavy scenes) still stands: these runs gave 14.3-15.6 while turning. **A question for the maintainers:** on two machines `GUARD_PAGES=1` gives 10-12 % with the port off, and nothing with it on. Would a PR that turns it on from the launcher be welcome, as `STORE_BESIDE` is now? Or should it stay a documented switch, as #560 proposes? (I've asked in #560 to drop the 13.0 → 17.8 sentence.) I can attach the logs of these runs, with the game folder replaced by `<game>`, if that helps.
nativ69 commented 2026-12-03 23:41:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from readmet3xt-lab/foxhound. Originally posted by nativ69 on 2026-12-03T23:41:24Z.


Thanks for the detailed investigation and the controlled follow-up runs. Since my hardware is very similar to yours, I ran nine tests on v0.8.3.5 to investigate VICTORY_GUARD_PAGES further, including its MOST and HOT_MS tuning parameters.

I reproduced the substantial reduction in buffer refresh copies, although the FPS improvement was smaller and less consistent on my system. Reducing the page threshold from 8 to 4 appears to offer a useful balance.

System specifications

  • CPU: AMD Ryzen 7 5800X (8 cores / 16 threads)
  • GPU: NVIDIA GeForce RTX 4070 12 GB
  • RAM: 32 GB DDR4-3200
  • OS: Windows 11 26H2, build 26300.9974
  • NVIDIA driver: 621.24
  • Streamline: 2.14.16
  • NGX: 310.9.16

Test configuration

  • Foxhound v0.8.3.5 (5e44415b4663), release build
  • Xbox Series X profile
  • Output resolution: 2560x1440
  • Internal rendering resolution: 1484x835
  • DLSS Balanced (0.58 scene scale)
  • Frame Generation disabled
  • 30 FPS target
  • Updated title profile, warm pipeline cache
  • VICTORY_STREAMLINE_PRESENT=1
  • VICTORY_ASYNC_SUBMIT=1
  • VICTORY_TEXTURE_STAGE_MS=16
  • VICTORY_THIN_THREADS=8
  • VICTORY_PORT_CONSTANTS=0
  • 8 pipeline workers, 16 DirectStorage workers
  • Default VRAM budget management (initial budget: 11,244 MB; initial card buffer limit: 2,023 MB)

The tests were played manually through the opening sequence, including cutscenes and gameplay. I collected runtime logs and Windows performance counters at approximately one-second intervals and used AI-assisted analysis of the logs. These are not scripted, scene-matched benchmarks. The workload and memory pressure vary between runs, so small FPS differences should be treated cautiously.

For the performance tables, I selected reporting windows with at least 0.9 DLSS upscalings per frame to focus on active rendering. Average FPS is total measured frames divided by the sum of the selected window durations. Frame-time percentiles and per-frame timing counters are medians of reporting windows, not global frame-time percentiles. Copy volumes are frame-weighted means. Windows memory and CPU statistics cover the continuous interval from the start of the first selected window to the end of the last.

1. Test matrix and performance

Tests are listed in chronological order.

Test Guard Pages MOST HOT_MS Duration (s) Frames Avg FPS Median FT (ms) P95 (ms) P99 (ms) Frames >100 ms Longest (ms)
Test 1 0 - - 106.4 2,096 19.70 49.2 76.4 97.1 3.58% 685.5
Test 2 1 8 0 156.8 3,304 21.08 49.0 76.0 89.0 3.24% 367.0
Test 3 0 - - 145.7 3,145 21.59 45.2 69.8 81.5 1.84% 443.2
Test 4 1 4 0 169.6 3,683 21.72 46.1 71.5 84.7 1.95% 331.2
Test 5 1 2 0 148.8 3,073 20.65 48.5 76.1 88.1 2.77% 350.5
Test 6 1 4 0 146.3 3,157 21.57 47.7 77.0 88.0 2.72% 348.5
Test 7 1 4 100 201.5 4,492 22.30 44.7 69.0 75.9 1.67% 801.7
Test 8 1 4 500 155.2 3,307 21.31 47.3 71.5 82.5 1.87% 969.5
Test 9 1 4 50 130.7 2,715 20.77 46.4 73.3 83.1 2.65% 322.0

2. Buffer refresh and submission costs

Test Refresh copies (MB/frame) Single-page openings/frame Whole-block openings/frame Submission prep (ms/frame) Async submit work (ms/frame) CPU usage GPU queue busy* Indirect executions/frame
Test 1 48.39 - - 41.60 43.10 84.7% 64.0% 3,285
Test 2 27.11 1,410 237 37.15 38.55 83.8% 64.5% 3,981
Test 3 47.27 - - 40.45 41.95 85.5% 69.0% 3,740
Test 4 26.88 836 293 39.30 40.50 82.8% 66.0% 4,369
Test 5 28.27 448 277 39.85 41.25 85.7% 64.5% 4,211
Test 6 25.71 761 263 37.80 39.00 85.2% 65.0% 3,349
Test 7 33.56 476 282 38.65 40.00 83.8% 67.0% 4,309
Test 8 45.65 51 303 41.00 42.50 85.4% 67.0% 4,132
Test 9 29.77 764 291 41.40 42.50 84.4% 66.0% 3,983

Refresh copies refer specifically to bytes copied by write-watch/guard-based buffer refreshes, in the log's reported MB units, not total memory traffic. Single-page openings count write faults that opened an individual 4 KiB page, not all write faults. Whole-block openings include both threshold-triggered and hot-block openings. CPU usage is system-wide.

GPU queue busy is Foxhound's internal estimate, not hardware GPU utilization. During gameplay, Task Manager generally showed around 90% GPU utilization on my system. I did not capture independent GPU utilization counters in these runs.

3. System memory pressure

Test Private median (GiB) Private peak (GiB) Working set median (GiB) Min available RAM (MB) Median commit usage Median Pages Input/sec
Test 1 26.36 27.44 20.66 1,548 91.5% 3,615
Test 2 26.64 27.29 20.65 1,082 92.1% 1,847
Test 3 26.12 27.40 20.37 1,305 91.4% 1,681
Test 4 25.99 27.01 20.26 1,844 90.5% 1,555
Test 5 27.11 28.05 20.42 606 92.9% 2,651
Test 6 25.82 27.43 20.55 979 90.9% 1,791
Test 7 26.52 27.09 20.35 1,463 92.1% 764
Test 8 26.36 27.18 20.69 1,872 91.9% 1,331
Test 9 26.61 27.28 20.87 864 93.0% 2,627

The lower copy volume does not necessarily translate into a smaller memory footprint. Memory pressure remained substantial throughout the tests. Pages Input/sec also includes memory-mapped file activity, so it should not be interpreted as pagefile-only I/O.

4. Effect of the guard-page threshold

With HOT_MS=0:

Configuration Runs Avg FPS Refresh copies (MB/frame) Single-page openings/frame Submission prep (ms/frame)
Guard Pages off 2 20.65 47.83 - 41.03
MOST=8 (default) 1 21.08 27.11 1,410 37.15
MOST=4 2 21.65 26.30 799 38.55
MOST=2 1 20.65 28.27 448 39.85

For configurations tested twice, the summary uses the arithmetic mean of the two run-level results rather than pooling the runs.

  • Enabling Guard Pages at the default threshold reduced refresh copy volume by approximately 43% compared with the two disabled runs. Turning it off again in Test 3 restored the original copy volume.
  • Lowering MOST from 8 to 4 reduced single-page openings by approximately 43%, without increasing copy volume. Both runs with MOST=4 reproduced this pattern.
  • Compared with Guard Pages disabled, MOST=4 reduced copy volume by approximately 45%. Average FPS was about 4.8% higher, but the uncontrolled workload means this is not a confirmed FPS gain.
  • Lowering MOST further to 2 reduced single-page openings again, but the measured FPS was lower and copy volume increased slightly. That run also experienced greater memory pressure.

5. Effect of hot-block tracking

Keeping MOST=4:

HOT_MS Avg FPS Refresh copies (MB/frame) Single-page openings/frame Worst observed frame (ms)
0 (two runs) 21.65 26.30 799 348.5
50 20.77 29.77 764 322.0
100 22.30 33.56 476 801.7
500 21.31 45.65 51 969.5

Increasing HOT_MS trades fewer individual page openings for more bytes copied. At 500 ms, the copy volume was already close to the disabled Guard Pages baseline. At 50 ms, the reduction in single-page openings was small, with higher copy volume and preparation time.

The 100 ms run had the highest average FPS, but both the 100 and 500 ms runs contained unusually long frames. I cannot attribute those stalls to hot-block tracking itself. The exact configured HOT_MS value is not printed in the logs; the values above are the requested launch settings.

Recommendation

For my system, I would currently use:

VICTORY_GUARD_PAGES=1
VICTORY_GUARD_PAGES_MOST=4

I would leave VICTORY_GUARD_PAGES_HOT_MS at its disabled default (0), and keep VICTORY_PORT_CONSTANTS=0.

The most compelling result here is the reproducible reduction in buffer refresh traffic and single-page openings, rather than the small differences in FPS. Given the results in this issue and the additional measurements above, I think Guard Pages with MOST=4 is worth considering as a launcher option or documented recommendation. I would still validate the threshold on other systems with controlled, scene-matched runs before changing the global default.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:comment:7395871586 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/issues/532#issuecomment-7395871586). Originally posted by [nativ69](https://github.com/nativ69) on 2026-12-03T23:41:24Z. --- Thanks for the detailed investigation and the controlled follow-up runs. Since my hardware is very similar to yours, I ran nine tests on v0.8.3.5 to investigate `VICTORY_GUARD_PAGES` further, including its `MOST` and `HOT_MS` tuning parameters. I reproduced the substantial reduction in buffer refresh copies, although the FPS improvement was smaller and less consistent on my system. Reducing the page threshold from 8 to 4 appears to offer a useful balance. ## System specifications - **CPU:** AMD Ryzen 7 5800X (8 cores / 16 threads) - **GPU:** NVIDIA GeForce RTX 4070 12 GB - **RAM:** 32 GB DDR4-3200 - **OS:** Windows 11 26H2, build 26300.9974 - **NVIDIA driver:** 621.24 - **Streamline:** 2.14.16 - **NGX:** 310.9.16 ## Test configuration - Foxhound v0.8.3.5 (`5e44415b4663`), release build - Xbox Series X profile - Output resolution: 2560x1440 - Internal rendering resolution: 1484x835 - DLSS Balanced (0.58 scene scale) - Frame Generation disabled - 30 FPS target - Updated title profile, warm pipeline cache - `VICTORY_STREAMLINE_PRESENT=1` - `VICTORY_ASYNC_SUBMIT=1` - `VICTORY_TEXTURE_STAGE_MS=16` - `VICTORY_THIN_THREADS=8` - `VICTORY_PORT_CONSTANTS=0` - 8 pipeline workers, 16 DirectStorage workers - Default VRAM budget management (initial budget: 11,244 MB; initial card buffer limit: 2,023 MB) The tests were played manually through the opening sequence, including cutscenes and gameplay. I collected runtime logs and Windows performance counters at approximately one-second intervals and used AI-assisted analysis of the logs. These are not scripted, scene-matched benchmarks. The workload and memory pressure vary between runs, so small FPS differences should be treated cautiously. For the performance tables, I selected reporting windows with at least 0.9 DLSS upscalings per frame to focus on active rendering. Average FPS is total measured frames divided by the sum of the selected window durations. Frame-time percentiles and per-frame timing counters are medians of reporting windows, not global frame-time percentiles. Copy volumes are frame-weighted means. Windows memory and CPU statistics cover the continuous interval from the start of the first selected window to the end of the last. ## 1. Test matrix and performance Tests are listed in chronological order. | Test | Guard Pages | MOST | HOT_MS | Duration (s) | Frames | Avg FPS | Median FT (ms) | P95 (ms) | P99 (ms) | Frames >100 ms | Longest (ms) | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | Test 1 | 0 | - | - | 106.4 | 2,096 | 19.70 | 49.2 | 76.4 | 97.1 | 3.58% | 685.5 | | Test 2 | 1 | 8 | 0 | 156.8 | 3,304 | 21.08 | 49.0 | 76.0 | 89.0 | 3.24% | 367.0 | | Test 3 | 0 | - | - | 145.7 | 3,145 | 21.59 | 45.2 | 69.8 | 81.5 | 1.84% | 443.2 | | Test 4 | 1 | 4 | 0 | 169.6 | 3,683 | 21.72 | 46.1 | 71.5 | 84.7 | 1.95% | 331.2 | | Test 5 | 1 | 2 | 0 | 148.8 | 3,073 | 20.65 | 48.5 | 76.1 | 88.1 | 2.77% | 350.5 | | Test 6 | 1 | 4 | 0 | 146.3 | 3,157 | 21.57 | 47.7 | 77.0 | 88.0 | 2.72% | 348.5 | | Test 7 | 1 | 4 | 100 | 201.5 | 4,492 | 22.30 | 44.7 | 69.0 | 75.9 | 1.67% | 801.7 | | Test 8 | 1 | 4 | 500 | 155.2 | 3,307 | 21.31 | 47.3 | 71.5 | 82.5 | 1.87% | 969.5 | | Test 9 | 1 | 4 | 50 | 130.7 | 2,715 | 20.77 | 46.4 | 73.3 | 83.1 | 2.65% | 322.0 | ## 2. Buffer refresh and submission costs | Test | Refresh copies (MB/frame) | Single-page openings/frame | Whole-block openings/frame | Submission prep (ms/frame) | Async submit work (ms/frame) | CPU usage | GPU queue busy* | Indirect executions/frame | | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | Test 1 | 48.39 | - | - | 41.60 | 43.10 | 84.7% | 64.0% | 3,285 | | Test 2 | 27.11 | 1,410 | 237 | 37.15 | 38.55 | 83.8% | 64.5% | 3,981 | | Test 3 | 47.27 | - | - | 40.45 | 41.95 | 85.5% | 69.0% | 3,740 | | Test 4 | 26.88 | 836 | 293 | 39.30 | 40.50 | 82.8% | 66.0% | 4,369 | | Test 5 | 28.27 | 448 | 277 | 39.85 | 41.25 | 85.7% | 64.5% | 4,211 | | Test 6 | 25.71 | 761 | 263 | 37.80 | 39.00 | 85.2% | 65.0% | 3,349 | | Test 7 | 33.56 | 476 | 282 | 38.65 | 40.00 | 83.8% | 67.0% | 4,309 | | Test 8 | 45.65 | 51 | 303 | 41.00 | 42.50 | 85.4% | 67.0% | 4,132 | | Test 9 | 29.77 | 764 | 291 | 41.40 | 42.50 | 84.4% | 66.0% | 3,983 | Refresh copies refer specifically to bytes copied by write-watch/guard-based buffer refreshes, in the log's reported MB units, not total memory traffic. Single-page openings count write faults that opened an individual 4 KiB page, not all write faults. Whole-block openings include both threshold-triggered and hot-block openings. CPU usage is system-wide. *GPU queue busy is Foxhound's internal estimate, not hardware GPU utilization. During gameplay, Task Manager generally showed around 90% GPU utilization on my system. I did not capture independent GPU utilization counters in these runs.* ## 3. System memory pressure | Test | Private median (GiB) | Private peak (GiB) | Working set median (GiB) | Min available RAM (MB) | Median commit usage | Median Pages Input/sec | | --- | ---: | ---: | ---: | ---: | ---: | ---: | | Test 1 | 26.36 | 27.44 | 20.66 | 1,548 | 91.5% | 3,615 | | Test 2 | 26.64 | 27.29 | 20.65 | 1,082 | 92.1% | 1,847 | | Test 3 | 26.12 | 27.40 | 20.37 | 1,305 | 91.4% | 1,681 | | Test 4 | 25.99 | 27.01 | 20.26 | 1,844 | 90.5% | 1,555 | | Test 5 | 27.11 | 28.05 | 20.42 | 606 | 92.9% | 2,651 | | Test 6 | 25.82 | 27.43 | 20.55 | 979 | 90.9% | 1,791 | | Test 7 | 26.52 | 27.09 | 20.35 | 1,463 | 92.1% | 764 | | Test 8 | 26.36 | 27.18 | 20.69 | 1,872 | 91.9% | 1,331 | | Test 9 | 26.61 | 27.28 | 20.87 | 864 | 93.0% | 2,627 | The lower copy volume does not necessarily translate into a smaller memory footprint. Memory pressure remained substantial throughout the tests. Pages Input/sec also includes memory-mapped file activity, so it should not be interpreted as pagefile-only I/O. ## 4. Effect of the guard-page threshold With `HOT_MS=0`: | Configuration | Runs | Avg FPS | Refresh copies (MB/frame) | Single-page openings/frame | Submission prep (ms/frame) | | --- | ---: | ---: | ---: | ---: | ---: | | Guard Pages off | 2 | 20.65 | 47.83 | - | 41.03 | | MOST=8 (default) | 1 | 21.08 | 27.11 | 1,410 | 37.15 | | MOST=4 | 2 | 21.65 | 26.30 | 799 | 38.55 | | MOST=2 | 1 | 20.65 | 28.27 | 448 | 39.85 | For configurations tested twice, the summary uses the arithmetic mean of the two run-level results rather than pooling the runs. - Enabling Guard Pages at the default threshold reduced refresh copy volume by approximately **43%** compared with the two disabled runs. Turning it off again in Test 3 restored the original copy volume. - Lowering `MOST` from 8 to 4 reduced single-page openings by approximately **43%**, without increasing copy volume. Both runs with `MOST=4` reproduced this pattern. - Compared with Guard Pages disabled, `MOST=4` reduced copy volume by approximately **45%**. Average FPS was about 4.8% higher, but the uncontrolled workload means this is not a confirmed FPS gain. - Lowering `MOST` further to 2 reduced single-page openings again, but the measured FPS was lower and copy volume increased slightly. That run also experienced greater memory pressure. ## 5. Effect of hot-block tracking Keeping `MOST=4`: | HOT_MS | Avg FPS | Refresh copies (MB/frame) | Single-page openings/frame | Worst observed frame (ms) | | --- | ---: | ---: | ---: | ---: | | 0 (two runs) | 21.65 | 26.30 | 799 | 348.5 | | 50 | 20.77 | 29.77 | 764 | 322.0 | | 100 | 22.30 | 33.56 | 476 | 801.7 | | 500 | 21.31 | 45.65 | 51 | 969.5 | Increasing `HOT_MS` trades fewer individual page openings for more bytes copied. At 500 ms, the copy volume was already close to the disabled Guard Pages baseline. At 50 ms, the reduction in single-page openings was small, with higher copy volume and preparation time. The 100 ms run had the highest average FPS, but both the 100 and 500 ms runs contained unusually long frames. I cannot attribute those stalls to hot-block tracking itself. The exact configured `HOT_MS` value is not printed in the logs; the values above are the requested launch settings. ## Recommendation For my system, I would currently use: ```text VICTORY_GUARD_PAGES=1 VICTORY_GUARD_PAGES_MOST=4 ``` I would leave `VICTORY_GUARD_PAGES_HOT_MS` at its disabled default (0), and keep `VICTORY_PORT_CONSTANTS=0`. The most compelling result here is the reproducible reduction in buffer refresh traffic and single-page openings, rather than the small differences in FPS. Given the results in this issue and the additional measurements above, I think Guard Pages with `MOST=4` is worth considering as a launcher option or documented recommendation. I would still validate the threshold on other systems with controlled, scene-matched runs before changing the global default.
tillo88 commented 2026-12-04 00:47:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from readmet3xt-lab/foxhound. Originally posted by tillo88 on 2026-12-04T00:47:08Z.


Another data point for VICTORY_GUARD_PAGES=1, on a faster CPU (replay bench, constants port off)

Measured: release v0.8.3.5 (5e44415) with default switches, against the same release with VICTORY_GUARD_PAGES=1 added (GUARD_PAGES_MOST and GUARD_PAGES_HOT_MS not set, PORT_CONSTANTS off). Same save and recorded controller input on every run, ~6.5 min route (prison cutscene, cut to the plane, first part on the boat); each job starts with a warm-up run that is not counted. 5 release runs, 4 GUARD_PAGES=1 runs (two separate jobs).

release (5 runs) GUARD_PAGES=1 (4 runs)
fps, mean (range) 36.76 (36.45-37.23) 37.46 (37.11-37.68)
CPU prep, ms (range) 18.98 (18.49-19.38) 16.62 (16.40-16.76)
asking the write watch, submitting thread, ms 4.28 (4.19-4.42) 5.18 (5.10-5.21)
GPU time reported by the layer, ms 3.79 (3.40-4.12) 6.23 (5.91-6.54)
median frame, ms 28.28 (27.80-28.70) 28.96 (28.75-29.35)
p95, ms 38.79 (38.21-39.23) 39.73 (39.41-39.93)
p99, ms 45.56 (44.78-46.42) 46.57 (45.79-47.36)
frames > 100 ms per run 14.4 (12-17) 20.8 (19-23)

What it shows on this machine:

  • CPU prep falls by about 2.4 ms a frame, every GUARD_PAGES=1 run below every release run, while asking the write watch rises by about 0.9 ms: the same direction as the runs above on the 5700X, 5600X and 5800X.
  • The frame rate gains only +1.9%; 3 of the 4 runs were above the fastest release run. On v0.8.3.3 the same switch gave +4.3% over 2 runs (38.25 / 37.94 fps against 11 release runs, 36.15-37.12; prep 14.9 / 14.4 against about 19.5 ms).
  • Longer frames go the other way: more frames over 100 ms in every run (19-23 against 12-17), and the median, p95 and p99 slightly higher. The GPU time the layer reports also rose in every run.
  • No crashes and no new layer warnings in any of these runs.

So on a CPU where prep is not the whole frame, the gain is small and comes with somewhat more long frames on this route. VICTORY_GUARD_PAGES=1 with VICTORY_GUARD_PAGES_MOST=4, as suggested above, is queued on the same bench.

Config: RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 32 GB, Windows 11; default play-foxhound.ps1 settings (Series X profile, 1440p, DLSS balanced, no frame generation), fullscreen, no frame cap.

Measured unattended on a replay bench (same save, recorded controller input); numbers and text prepared with Claude.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:comment:7397158446 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/issues/532#issuecomment-7397158446). Originally posted by [tillo88](https://github.com/tillo88) on 2026-12-04T00:47:08Z. --- **Another data point for `VICTORY_GUARD_PAGES=1`, on a faster CPU (replay bench, constants port off)** Measured: release **v0.8.3.5** (`5e44415`) with default switches, against the same release with `VICTORY_GUARD_PAGES=1` added (`GUARD_PAGES_MOST` and `GUARD_PAGES_HOT_MS` not set, `PORT_CONSTANTS` off). Same save and recorded controller input on every run, ~6.5 min route (prison cutscene, cut to the plane, first part on the boat); each job starts with a warm-up run that is not counted. 5 release runs, 4 `GUARD_PAGES=1` runs (two separate jobs). | | release (5 runs) | `GUARD_PAGES=1` (4 runs) | |---|---|---| | fps, mean (range) | 36.76 (36.45-37.23) | **37.46** (37.11-37.68) | | CPU prep, ms (range) | 18.98 (18.49-19.38) | **16.62** (16.40-16.76) | | asking the write watch, submitting thread, ms | 4.28 (4.19-4.42) | 5.18 (5.10-5.21) | | GPU time reported by the layer, ms | 3.79 (3.40-4.12) | 6.23 (5.91-6.54) | | median frame, ms | 28.28 (27.80-28.70) | 28.96 (28.75-29.35) | | p95, ms | 38.79 (38.21-39.23) | 39.73 (39.41-39.93) | | p99, ms | 45.56 (44.78-46.42) | 46.57 (45.79-47.36) | | frames > 100 ms per run | 14.4 (12-17) | 20.8 (19-23) | What it shows on this machine: - **CPU prep falls by about 2.4 ms a frame**, every `GUARD_PAGES=1` run below every release run, while asking the write watch rises by about 0.9 ms: the same direction as the runs above on the 5700X, 5600X and 5800X. - **The frame rate gains only +1.9%**; 3 of the 4 runs were above the fastest release run. On v0.8.3.3 the same switch gave +4.3% over 2 runs (38.25 / 37.94 fps against 11 release runs, 36.15-37.12; prep 14.9 / 14.4 against about 19.5 ms). - **Longer frames go the other way**: more frames over 100 ms in every run (19-23 against 12-17), and the median, p95 and p99 slightly higher. The GPU time the layer reports also rose in every run. - No crashes and no new layer warnings in any of these runs. So on a CPU where prep is not the whole frame, the gain is small and comes with somewhat more long frames on this route. `VICTORY_GUARD_PAGES=1` with `VICTORY_GUARD_PAGES_MOST=4`, as suggested above, is queued on the same bench. Config: RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 32 GB, Windows 11; default `play-foxhound.ps1` settings (Series X profile, 1440p, DLSS balanced, no frame generation), fullscreen, no frame cap. Measured unattended on a replay bench (same save, recorded controller input); numbers and text prepared with Claude.
BrenoMazini commented 2026-12-04 01:02:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from readmet3xt-lab/foxhound. Originally posted by BrenoMazini on 2026-12-04T01:02:55Z.


Thank you for running this on a much faster CPU, and for how carefully the bench is set up: a warm-up run, several runs per setting, and the ranges along with the means. It fills a gap I couldn't fill from here.

If I read it right, it shows the other side of what I measured. On the 5700X, the submitting thread's preparing is most of the frame, so the ~9.5 ms that guard pages took off it showed up in the frame rate (+10.5 %), and the p95 went down too (96 → 86 ms). On your 9800X3D, preparing is about 19 of 28 ms, so the same direction in prep (−2.4 ms) gives only +1.9 %, and the long frames went the other way. I can't tell from here why they rose on your route. I haven't seen that on mine, but my runs are a 24 s camera turn in one spot, not a 6.5 min route with cutscenes, so I may simply not be catching it.

That changes how I see the question I asked above, about turning it on from the launcher. With your numbers, a default for everyone looks wrong to me. An option, or a recommendation for CPUs where preparing is most of the frame, seems closer to what the data shows. I'd leave that to you and the maintainers.

On GUARD_PAGES_MOST=4: I've prepared a controlled series on the 5700X, 8 translators, the default 8 against 4, alternated, with the system's commit and free RAM logged in each phase. I'll post it here when it's done, so it sits next to yours and nativ69's.

One more thing, only if you have the time and it interests you. I've opened #586 with everything I have on my fork's "home", which makes VICTORY_PORT_CONSTANTS=1 pay on a CPU-bound PC. It has a "How you can help" section, and the first item there is exactly what your bench does well: the port on against off, same route, with the card profile's dispatch time and the submitting thread's preparing. Your PC is probably not one where the home would pay, but a clean measurement of what the port costs the card on a 5070 Ti would still tell me a lot. Any correction to what I wrote there would be just as welcome.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:comment:7397423198 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/issues/532#issuecomment-7397423198). Originally posted by [BrenoMazini](https://github.com/BrenoMazini) on 2026-12-04T01:02:55Z. --- Thank you for running this on a much faster CPU, and for how carefully the bench is set up: a warm-up run, several runs per setting, and the ranges along with the means. It fills a gap I couldn't fill from here. If I read it right, it shows the other side of what I measured. On the 5700X, the submitting thread's preparing is most of the frame, so the ~9.5 ms that guard pages took off it showed up in the frame rate (+10.5 %), and the p95 went down too (96 → 86 ms). On your 9800X3D, preparing is about 19 of 28 ms, so the same direction in prep (−2.4 ms) gives only +1.9 %, and the long frames went the other way. I can't tell from here why they rose on your route. I haven't seen that on mine, but my runs are a 24 s camera turn in one spot, not a 6.5 min route with cutscenes, so I may simply not be catching it. That changes how I see the question I asked above, about turning it on from the launcher. With your numbers, a default for everyone looks wrong to me. An option, or a recommendation for CPUs where preparing is most of the frame, seems closer to what the data shows. I'd leave that to you and the maintainers. On `GUARD_PAGES_MOST=4`: I've prepared a controlled series on the 5700X, 8 translators, the default 8 against 4, alternated, with the system's commit and free RAM logged in each phase. I'll post it here when it's done, so it sits next to yours and nativ69's. One more thing, only if you have the time and it interests you. I've opened #586 with everything I have on my fork's "home", which makes `VICTORY_PORT_CONSTANTS=1` pay on a CPU-bound PC. It has a "How you can help" section, and the first item there is exactly what your bench does well: the port on against off, same route, with the card profile's dispatch time and the submitting thread's preparing. Your PC is probably not one where the home would pay, but a clean measurement of what the port costs the card on a 5070 Ti would still tell me a lot. Any correction to what I wrote there would be just as welcome.
tillo88 commented 2026-12-04 03:40:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from readmet3xt-lab/foxhound. Originally posted by tillo88 on 2026-12-04T03:40:54Z.


Follow-up: VICTORY_GUARD_PAGES_MOST=4 on the same replay bench (9800X3D)

As announced above, VICTORY_GUARD_PAGES=1 with VICTORY_GUARD_PAGES_MOST=4 (the setting @nativ69 suggested), on release v0.8.3.5 (5e44415), constants port off, GUARD_PAGES_HOT_MS not set: 2 measured runs (after a warm-up run that is not counted). The release baseline now has 7 runs, so its figures differ slightly from my comment above.

release (7 runs) GUARD_PAGES=1, MOST default (4 runs) GUARD_PAGES=1, MOST=4 (2 runs)
fps, mean (range) 36.88 (36.45-37.24) 37.46 (37.11-37.68) 37.30 (37.01 / 37.59)
CPU prep, ms 18.85 (18.34-19.38) 16.62 (16.40-16.76) 16.63 (16.57 / 16.69)
asking the write watch, submitting thread, ms 4.29 (4.19-4.42) 5.18 (5.10-5.21) 5.21 (5.16 / 5.26)
GPU time reported by the layer, ms 3.75 (3.40-4.12) 6.23 (5.91-6.54) 6.13 (5.89 / 6.37)
median frame, ms 28.21 (27.80-28.70) 28.96 (28.75-29.35) 29.05 (29.00 / 29.10)
p95, ms 38.66 (38.14-39.23) 39.73 (39.41-39.93) 40.40 (39.93 / 40.86)
p99, ms 45.70 (44.78-46.46) 46.57 (45.79-47.36) 46.85 (46.34 / 47.36)
frames > 100 ms per run 14.7 (12-17) 20.8 (19-23) 17 (14 / 20)

What it shows on this machine:

  • MOST=4 behaves like the default threshold here. CPU prep, write-watch asking and the GPU time the layer reports are the same as with the default within run-to-run spread; prep is about 2.2 ms below the release in both runs.
  • Frame rate: +1.1% over the release (+1.6% for the default threshold against the 7-run baseline), below the bench's threshold for calling it faster.
  • Long frames: 14 and 20 frames over 100 ms (default threshold 19-23, release 12-17); median, p95 and p99 slightly above the release, as with the default threshold. Two runs are not enough to say whether MOST=4 reduces the long frames.
  • No crashes and no new layer warnings in these runs.

This bench does not log the single-page openings per frame, so it cannot show the drop in openings @nativ69 saw. On a CPU where prep is about two thirds of the frame, the threshold does not move the result either way.

@BrenoMazini: the port on/off measurement you asked for in #586 (with VICTORY_PROFILE=1 on both sides) is queued on this bench; I'll post it there.

Config: RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 32 GB, Windows 11; default play-foxhound.ps1 settings (Series X profile, 1440p, DLSS balanced, no frame generation), fullscreen, no frame cap.

Measured unattended on a replay bench (same save, recorded controller input); numbers and text prepared with Claude.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:comment:7400337349 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/issues/532#issuecomment-7400337349). Originally posted by [tillo88](https://github.com/tillo88) on 2026-12-04T03:40:54Z. --- **Follow-up: `VICTORY_GUARD_PAGES_MOST=4` on the same replay bench (9800X3D)** As announced above, `VICTORY_GUARD_PAGES=1` with `VICTORY_GUARD_PAGES_MOST=4` (the setting @nativ69 suggested), on release **v0.8.3.5** (`5e44415`), constants port off, `GUARD_PAGES_HOT_MS` not set: 2 measured runs (after a warm-up run that is not counted). The release baseline now has 7 runs, so its figures differ slightly from my comment above. | | release (7 runs) | `GUARD_PAGES=1`, MOST default (4 runs) | `GUARD_PAGES=1`, `MOST=4` (2 runs) | |---|---|---|---| | fps, mean (range) | 36.88 (36.45-37.24) | 37.46 (37.11-37.68) | 37.30 (37.01 / 37.59) | | CPU prep, ms | 18.85 (18.34-19.38) | 16.62 (16.40-16.76) | 16.63 (16.57 / 16.69) | | asking the write watch, submitting thread, ms | 4.29 (4.19-4.42) | 5.18 (5.10-5.21) | 5.21 (5.16 / 5.26) | | GPU time reported by the layer, ms | 3.75 (3.40-4.12) | 6.23 (5.91-6.54) | 6.13 (5.89 / 6.37) | | median frame, ms | 28.21 (27.80-28.70) | 28.96 (28.75-29.35) | 29.05 (29.00 / 29.10) | | p95, ms | 38.66 (38.14-39.23) | 39.73 (39.41-39.93) | 40.40 (39.93 / 40.86) | | p99, ms | 45.70 (44.78-46.46) | 46.57 (45.79-47.36) | 46.85 (46.34 / 47.36) | | frames > 100 ms per run | 14.7 (12-17) | 20.8 (19-23) | 17 (14 / 20) | What it shows on this machine: - **`MOST=4` behaves like the default threshold here.** CPU prep, write-watch asking and the GPU time the layer reports are the same as with the default within run-to-run spread; prep is about 2.2 ms below the release in both runs. - **Frame rate: +1.1%** over the release (+1.6% for the default threshold against the 7-run baseline), below the bench's threshold for calling it faster. - **Long frames:** 14 and 20 frames over 100 ms (default threshold 19-23, release 12-17); median, p95 and p99 slightly above the release, as with the default threshold. Two runs are not enough to say whether `MOST=4` reduces the long frames. - No crashes and no new layer warnings in these runs. This bench does not log the single-page openings per frame, so it cannot show the drop in openings @nativ69 saw. On a CPU where prep is about two thirds of the frame, the threshold does not move the result either way. @BrenoMazini: the port on/off measurement you asked for in #586 (with `VICTORY_PROFILE=1` on both sides) is queued on this bench; I'll post it there. Config: RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 32 GB, Windows 11; default `play-foxhound.ps1` settings (Series X profile, 1440p, DLSS balanced, no frame generation), fullscreen, no frame cap. Measured unattended on a replay bench (same save, recorded controller input); numbers and text prepared with Claude.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
readmet3xt-lab/foxhound#532
No description provided.