Intel i7-10700KF + RTX 4090: CPU-bound at 10–15 fps; five opt-in switches give +40 %, victory-submit remains the bottleneck (~63 ms/frame) #2842

Open
opened 2026-11-29 18:00:41 +00:00 by neskweek · 0 comments
neskweek commented 2026-11-29 18:00:41 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by neskweek on 2026-11-29T18:00:41Z.


System

CPU Intel Core i7-10700KF (8 cores / 16 threads, Comet Lake, 3.8 GHz base, no AVX-512). Lacks MONITORX/MWAITX/CLZERO/CLWB/INSERTQ, which console_insn patches as intended
RAM 128 GB
GPU RTX 4090, driver 621.40 (23,370 MB budget)
OS Windows 11, build 26100
Victory v2026.11.29.01, official victory.exe
Title game_scarlett_master.exe, series-x, 1080to1440, DLSS Quality (preset L), frame generation off
Background Sunshine (NVENC); no other load in the runs below
Pipeline library complete: about 4,600 loaded, fewer than 10 built per run, 2–4 frames over 250 ms per run

All measurements come from the same save and the same part of the world.

Summary

  1. On this CPU the title is CPU-bound at about 10–11 fps in game with the default switches. The GPU is busy 30–45 ms per frame, but mostly because it waits behind the CPU.
  2. Enabling five switches that are off by default raised gameplay to about 15 fps (+40 %) over a 5-minute session, with no visual problem noticed so far:
    VICTORY_FILL_TITLE=1, VICTORY_GPU_DETILE=1, VICTORY_HEAP_HOOKS=1, VICTORY_SETTLE_UNLOCKED=1, VICTORY_WAIT_SPIN=500
  3. After that, the frame is bound by one thread, victory-submit: median 63 ms of work per frame, with about 12 submissions waiting in its line. The card is idle behind it.

Before / after (official exe, same settings otherwise)

Before (…095850…) After (…164141…)
fps at 3,500–7,000 draws per frame 11.3 16.0
fps at 9,000 draws per frame and more 9.8 13.5
waiting for flights per frame 18–30 ms about 1 ms
GPU time per frame 30–45 ms 1–12 ms
Submitting thread per frame 94 ms 58 ms

What each switch visibly did (log counters):

  • FILL_TITLE: the settle reason title memory read (by a fill of upload memory) goes from about 2.6 per frame to 0.0. This is exactly the case fill_is_titles documents: the 480-byte constants ring in the 174 MB heap that is declared written as a whole.
  • HEAP_HOOKS: the page scan of the view heap (about 500,000 slots and about 25 ms per frame on victory-heap-sync) is replaced by about 174,000 hooked records per frame. No guarded again and no ranges changed by others over 5 minutes.
  • GPU_DETILE: CPU detiling drops from 2.6–6.3 ms per frame to 0.0–0.7 ms.
  • The switches were enabled together, so the gains are not separated per switch.

Where victory-submit spends its time now (heavy part, about 10,000 draws per frame)

queue::behind: 43.0 [submissions] in 1.0 presents, 12.1 in the line ... that thread worked 68.2 ms
preparing per frame: 62.3 ms ... 5.5 asking the write watch, 3.9 putting the title's bytes under flights' writes,
  35.1 in the lists' steps (refreshes 20.1 in 43 flushes of 8007, 6883 of them known to copy nothing ...),
  9.9 for copies in the card's memory, 2.2 snapshots, 1.6 sending
the card's clock: ... 18.1 ms of that while the submitting thread was working (the card idle behind us)
  • About 41 submissions per frame, about 23 joined with JOIN_PARTS=8.
  • About 85 % of the refreshes are "known to copy nothing", yet refreshes cost 18–20 ms per frame.
  • List translation is not the limit: about 73,000 calls in about 340 ms across 8 threads, and the line is never empty.
  • The relay lands 40–52 ms per frame on its own thread ("copying back" 18–25 ms in the frame line).

This matches items 5–7 of docs/unified-memory-audit.md §4.3 (per-list summaries built once, a second stage, fewer fork-joins). This report is meant as data from an 8-core Intel system for those items.

Tried, no gain or worse (for reference)

Change Result
VICTORY_CARD_BUFFERS_MIN_KB=32 4,242 card copies instead of about 930; "copies in the card's memory" and write-watch time explode: 9.9 fps
VICTORY_CARD_BUFFERS_MIN_KB=2048 about the same as the default 1024
VICTORY_JOIN_PARTS=16 no more parts joined than with 8 (about 23 of about 41)
VICTORY_CARD_STEPS=2 0 fills and 0 copies taken in this scene
Local build of v2026.11.29.01 with lto = "fat", codegen-units = 1, -C target-cpu=native 6–9 % slower than the official exe at equal load (victory-submit median 68.5 vs 62.9 ms)
VICTORY_BVH_BUILDER=1 0.1–1 fps (structure builder: about 12,500 build dispatches; frames wait 3.6–7.6 s for about 320 compute pipelines)
VICTORY_PORT_CONSTANTS=1 about 3.4 fps, and wrong-looking textures

Suggestions

  1. Consider enabling HEAP_HOOKS and GPU_DETILE by default, or at least in the F1 menu, for CPU-bound systems with GPU headroom.
  2. A learning mode for FILL_TITLE, as CARD_STEPS_LEARN does for card fills, so it could become safe to enable by default.
  3. Drop "known to copy nothing" refreshes before they enter a flush, for example with a per-copy dirty bit kept by the write watch. On this system that is the largest remaining cost on the critical thread.
  4. Is the official victory.exe built with settings other than the repo's [profile.release]? A local release-style build with LTO was slower, so knowing the official build flags would help anyone building locally.

Other issues seen

  • DLSS Balanced / Performance / Ultra Performance corrupt some textures (a wooden floor rendered solid neon green and pixelated). DLSS Quality looks correct, and DLSS reports no failures. Possibly related, in every run: host view heap capped at 1000000 (737855 title + 262144 dynamic slots); views past 737855 read a null slot count=1245184, no free dynamic descriptor slots: a table is not made, and a draw whose descriptor table found no free slots is dropped.
  • ERROR streamline: Streamline presentCommon() was not observed appears once per run, when gameplay starts.
  • With GPU_DETILE=1: 5 × prelude upload left out: the host wrote the texture after the list that samples it was recorded, all in the same second.

Logs

  • victory-nvidia-play-20261129-095850-11924.log: before (defaults plus CARD_STEPS=2)
  • victory-nvidia-play-20261129-164141-10032.log: after (the five switches), 5 minutes of gameplay
  • victory-nvidia-play-20261129-174513-1956.log: local LTO build, same settings as the 16:41 run

victory-nvidia-play-20261129-174513-1956.log
victory-nvidia-play-20261129-095850-11924.log
victory-nvidia-play-20261129-164141-10032.log

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6682174818 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2842). Originally posted by [neskweek](https://github.com/neskweek) on 2026-11-29T18:00:41Z. --- ### System | | | |---|---| | CPU | Intel Core i7-10700KF (8 cores / 16 threads, Comet Lake, 3.8 GHz base, no AVX-512). Lacks `MONITORX`/`MWAITX`/`CLZERO`/`CLWB`/`INSERTQ`, which `console_insn` patches as intended | | RAM | 128 GB | | GPU | RTX 4090, driver 621.40 (23,370 MB budget) | | OS | Windows 11, build 26100 | | Victory | `v2026.11.29.01`, official `victory.exe` | | Title | `game_scarlett_master.exe`, `series-x`, `1080to1440`, DLSS Quality (preset L), frame generation off | | Background | Sunshine (NVENC); no other load in the runs below | | Pipeline library | complete: about 4,600 loaded, fewer than 10 built per run, 2–4 frames over 250 ms per run | All measurements come from the same save and the same part of the world. ### Summary 1. On this CPU the title is **CPU-bound at about 10–11 fps in game** with the default switches. The GPU is busy 30–45 ms per frame, but mostly because it waits behind the CPU. 2. Enabling **five switches that are off by default** raised gameplay to **about 15 fps (+40 %)** over a 5-minute session, with no visual problem noticed so far: `VICTORY_FILL_TITLE=1`, `VICTORY_GPU_DETILE=1`, `VICTORY_HEAP_HOOKS=1`, `VICTORY_SETTLE_UNLOCKED=1`, `VICTORY_WAIT_SPIN=500` 3. After that, the frame is bound by **one thread, `victory-submit`: median 63 ms of work per frame**, with about 12 submissions waiting in its line. The card is idle behind it. ### Before / after (official exe, same settings otherwise) | | Before (`…095850…`) | After (`…164141…`) | |---|---|---| | fps at 3,500–7,000 draws per frame | 11.3 | **16.0** | | fps at 9,000 draws per frame and more | 9.8 | **13.5** | | `waiting for flights` per frame | 18–30 ms | **about 1 ms** | | GPU time per frame | 30–45 ms | **1–12 ms** | | Submitting thread per frame | 94 ms | **58 ms** | What each switch visibly did (log counters): - `FILL_TITLE`: the settle reason `title memory read (by a fill of upload memory)` goes from about 2.6 per frame to 0.0. This is exactly the case `fill_is_titles` documents: the 480-byte constants ring in the 174 MB heap that is declared written as a whole. - `HEAP_HOOKS`: the page scan of the view heap (about 500,000 slots and about 25 ms per frame on `victory-heap-sync`) is replaced by about 174,000 hooked records per frame. No `guarded again` and no `ranges changed by others` over 5 minutes. - `GPU_DETILE`: CPU detiling drops from 2.6–6.3 ms per frame to 0.0–0.7 ms. - The switches were enabled together, so the gains are not separated per switch. ### Where `victory-submit` spends its time now (heavy part, about 10,000 draws per frame) ``` queue::behind: 43.0 [submissions] in 1.0 presents, 12.1 in the line ... that thread worked 68.2 ms preparing per frame: 62.3 ms ... 5.5 asking the write watch, 3.9 putting the title's bytes under flights' writes, 35.1 in the lists' steps (refreshes 20.1 in 43 flushes of 8007, 6883 of them known to copy nothing ...), 9.9 for copies in the card's memory, 2.2 snapshots, 1.6 sending the card's clock: ... 18.1 ms of that while the submitting thread was working (the card idle behind us) ``` - About **41 submissions per frame**, about 23 joined with `JOIN_PARTS=8`. - About **85 % of the refreshes are "known to copy nothing"**, yet refreshes cost 18–20 ms per frame. - List translation is not the limit: about 73,000 calls in about 340 ms across 8 threads, and the line is never empty. - The relay lands 40–52 ms per frame on its own thread ("copying back" 18–25 ms in the frame line). This matches items 5–7 of `docs/unified-memory-audit.md` §4.3 (per-list summaries built once, a second stage, fewer fork-joins). This report is meant as data from an 8-core Intel system for those items. ### Tried, no gain or worse (for reference) | Change | Result | |---|---| | `VICTORY_CARD_BUFFERS_MIN_KB=32` | 4,242 card copies instead of about 930; "copies in the card's memory" and write-watch time explode: 9.9 fps | | `VICTORY_CARD_BUFFERS_MIN_KB=2048` | about the same as the default 1024 | | `VICTORY_JOIN_PARTS=16` | no more parts joined than with 8 (about 23 of about 41) | | `VICTORY_CARD_STEPS=2` | 0 fills and 0 copies taken in this scene | | Local build of `v2026.11.29.01` with `lto = "fat"`, `codegen-units = 1`, `-C target-cpu=native` | **6–9 % slower** than the official exe at equal load (`victory-submit` median 68.5 vs 62.9 ms) | | `VICTORY_BVH_BUILDER=1` | 0.1–1 fps (structure builder: about 12,500 build dispatches; frames wait 3.6–7.6 s for about 320 compute pipelines) | | `VICTORY_PORT_CONSTANTS=1` | about 3.4 fps, and wrong-looking textures | ### Suggestions 1. Consider enabling `HEAP_HOOKS` and `GPU_DETILE` by default, or at least in the F1 menu, for CPU-bound systems with GPU headroom. 2. A learning mode for `FILL_TITLE`, as `CARD_STEPS_LEARN` does for card fills, so it could become safe to enable by default. 3. Drop "known to copy nothing" refreshes before they enter a flush, for example with a per-copy dirty bit kept by the write watch. On this system that is the largest remaining cost on the critical thread. 4. Is the official `victory.exe` built with settings other than the repo's `[profile.release]`? A local release-style build with LTO was slower, so knowing the official build flags would help anyone building locally. ### Other issues seen - **DLSS Balanced / Performance / Ultra Performance corrupt some textures** (a wooden floor rendered solid neon green and pixelated). DLSS Quality looks correct, and DLSS reports no failures. Possibly related, in every run: `host view heap capped at 1000000 (737855 title + 262144 dynamic slots); views past 737855 read a null slot count=1245184`, `no free dynamic descriptor slots: a table is not made`, and `a draw whose descriptor table found no free slots is dropped`. - `ERROR streamline: Streamline presentCommon() was not observed` appears once per run, when gameplay starts. - With `GPU_DETILE=1`: 5 × `prelude upload left out: the host wrote the texture after the list that samples it was recorded`, all in the same second. ### Logs - `victory-nvidia-play-20261129-095850-11924.log`: before (defaults plus `CARD_STEPS=2`) - `victory-nvidia-play-20261129-164141-10032.log`: after (the five switches), 5 minutes of gameplay - `victory-nvidia-play-20261129-174513-1956.log`: local LTO build, same settings as the 16:41 run [victory-nvidia-play-20261129-174513-1956.log](https://github.com/user-attachments/files/35579196/victory-nvidia-play-20261129-174513-1956.log) [victory-nvidia-play-20261129-095850-11924.log](https://github.com/user-attachments/files/35579194/victory-nvidia-play-20261129-095850-11924.log) [victory-nvidia-play-20261129-164141-10032.log](https://github.com/user-attachments/files/35579195/victory-nvidia-play-20261129-164141-10032.log)
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
trustno1-coder/VIctory-NVIDIA#2842
No description provided.