Open-world CPU/submit bottleneck: 9–11 fps (92–109 ms/frame) while GPU sits idle 34 ms/frame #170

Closed
opened 2026-11-29 23:11:42 +00:00 by Androtim · 2 comments
Androtim commented 2026-11-29 23:11:42 +00:00 (Migrated from github.com)
Contributor

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-29T23:11:42Z.


Summary

In a 12-minute Open-World RTX 4060 Ti 8 GB session on origin/main b46464d (wave5-openworld.cmd, Series S, DLSS Quality, Frame Gen OFF, RT OFF), visual glitches improved and zero freezes occurred, but open-world frame rate remains 9.1–10.8 fps (92.3–109.3 ms/frame) while the GPU sits mostly idle behind CPU/host submission bottlenecks.

Environment & Log

  • Build: origin/main b46464d (wave5-openworld.cmd — includes #153, #155, #156, #161, #163, #164, #165, #52)
  • GPU / Profile: RTX 4060 Ti 8 GB, Series S (720p -> 1080to1440), DLSS Quality, Frame Gen OFF, RT OFF
  • Log: victory-nvidia-play-20261129-225747-6592.log (0 crashes, 0 DRED, 0 freezes)

Observed Bottleneck Breakdown (at 10,098–10,379 draws/frame)

  • Overall Frame Time: 10.8 fps (92.3 ms) / 9.1 fps (109.3 ms) — only 0.3–1.2 ms on GPU, 9.3–12.4 ms copyback, 25.4–38.0 ms preparing.
  • GPU Starvation (victory_gpu::host): the card's clock per frame: nothing of ours queued 34.3 ms (the card about 69% busy by this count), 19.8 ms of that while the submitting thread was working (the card idle behind us).
  • Top 3 CPU / Host Hotspots:
    1. Dynamic descriptor slot backpressure (VICTORY_THIN_GATE):
      lists whose translation was held back for dynamic descriptor slots, per frame: 145.2–148.5, 5037.5–5040.0 ms in all; held back now 144–148, submitted lists not translated yet 144–148 (even with #155's 393,216 dynamic slot cap).
    2. Thin-list translation aggregate CPU cost (VICTORY_THIN):
      list calls translated by threads of ours per frame: 68917 in 569.0 ms (all threads), 212.5 lists, 436.5 pieces.
    3. Single-threaded async submitter (VICTORY_ASYNC_SUBMIT):
      submissions prepared by a thread of ours, per frame: 40.0 in 1.0 presents, 16.3 in the line when one was added (at most 46); that thread worked 41.9 ms, and 2.17 ms more taking translated lists out of the line (with submitting-thread preparing per frame at 40.8 ms: 14.8 ms in the lists' steps, 5.0 ms write watch).

Target Context

Even before dynamic-slot backpressure, the single submitting thread (41.9 ms) + copyback (9.3–12.4 ms) alone exceed the 33.3 ms (30 fps) target on Series S; reaching >= 30 fps on Series X 1440p requires cutting submitter/list-step overhead well under 20 ms and eliminating the VICTORY_THIN_GATE dynamic descriptor stall at 10k draws/frame.

<!-- greyfinch-sync:Androtim/MiniVI:issue:6685452048 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/issues/170). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-29T23:11:42Z. --- ### Summary In a 12-minute Open-World RTX 4060 Ti 8 GB session on `origin/main` `b46464d` (`wave5-openworld.cmd`, Series S, DLSS Quality, Frame Gen OFF, RT OFF), visual glitches improved and zero freezes occurred, but **open-world frame rate remains 9.1–10.8 fps (92.3–109.3 ms/frame)** while the GPU sits mostly idle behind CPU/host submission bottlenecks. ### Environment & Log - **Build:** `origin/main` `b46464d` (`wave5-openworld.cmd` — includes #153, #155, #156, #161, #163, #164, #165, #52) - **GPU / Profile:** RTX 4060 Ti 8 GB, Series S (`720p -> 1080to1440`), DLSS Quality, Frame Gen OFF, RT OFF - **Log:** `victory-nvidia-play-20261129-225747-6592.log` (**0** crashes, **0** DRED, **0** freezes) ### Observed Bottleneck Breakdown (at 10,098–10,379 draws/frame) - **Overall Frame Time:** `10.8 fps` (`92.3 ms`) / `9.1 fps` (`109.3 ms`) — only **`0.3–1.2 ms` on GPU**, **`9.3–12.4 ms` copyback**, **`25.4–38.0 ms` preparing**. - **GPU Starvation (`victory_gpu::host`):** `the card's clock per frame: nothing of ours queued 34.3 ms (the card about 69% busy by this count), 19.8 ms of that while the submitting thread was working (the card idle behind us)`. - **Top 3 CPU / Host Hotspots:** 1. **Dynamic descriptor slot backpressure (`VICTORY_THIN_GATE`):** `lists whose translation was held back for dynamic descriptor slots, per frame: 145.2–148.5, 5037.5–5040.0 ms in all; held back now 144–148, submitted lists not translated yet 144–148` (even with #155's `393,216` dynamic slot cap). 2. **Thin-list translation aggregate CPU cost (`VICTORY_THIN`):** `list calls translated by threads of ours per frame: 68917 in 569.0 ms (all threads), 212.5 lists, 436.5 pieces`. 3. **Single-threaded async submitter (`VICTORY_ASYNC_SUBMIT`):** `submissions prepared by a thread of ours, per frame: 40.0 in 1.0 presents, 16.3 in the line when one was added (at most 46); that thread worked 41.9 ms, and 2.17 ms more taking translated lists out of the line` (with submitting-thread `preparing per frame` at `40.8 ms`: `14.8 ms` in the lists' steps, `5.0 ms` write watch). ### Target Context Even before dynamic-slot backpressure, the single submitting thread (41.9 ms) + copyback (9.3–12.4 ms) alone exceed the **33.3 ms** (30 fps) target on Series S; reaching >= 30 fps on Series X 1440p requires cutting submitter/list-step overhead well under 20 ms and eliminating the `VICTORY_THIN_GATE` dynamic descriptor stall at 10k draws/frame.
Androtim commented 2026-11-30 17:07:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-30T17:07:54Z.


Confirmed on origin/main in crates/victory-gpu: the three CPU/host submission bottlenecks reported in #170 remain present in the current codebase.

Codebase Verification

  1. Dynamic descriptor slot backpressure (VICTORY_THIN_GATE)

  2. Thin-list translation aggregate CPU cost (VICTORY_THIN)

  3. Single-threaded async submitter (VICTORY_ASYNC_SUBMIT)

  • PR #327 (perf(gpu/host): default-on lazy card compare and hot-piece narrowing) targets host-side compare/prepare overhead, though VICTORY_THIN_GATE backpressure, VICTORY_THIN translation cost, and the single-threaded victory-submit lane remain open bottlenecks.

Automated triage generated with Antigravity CLI (agy).

<!-- greyfinch-sync:Androtim/MiniVI:comment:7285766834 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/issues/170#issuecomment-7285766834). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-30T17:07:54Z. --- <!-- minivi-triage v1 updated=2026-12-02T11:05:59Z verdict=confirmed at=2026-12-02T12:06:56Z --> Confirmed on `origin/main` in `crates/victory-gpu`: the three CPU/host submission bottlenecks reported in #170 remain present in the current codebase. ### Codebase Verification 1. **Dynamic descriptor slot backpressure (`VICTORY_THIN_GATE`)** - [`crates/victory-gpu/src/descriptor/host.rs`](file:///C:/Users/Androtim/Documents/My%20Games/CopGame/minivi-triage/repo-main/crates/victory-gpu/src/descriptor/host.rs#L2376-L2385) defines `DYNAMIC = 1 << 18` (`262,144`), `PORTABLE_DYNAMIC_CAP = DYNAMIC << 1` (`524,288`), and `PORTABLE_DYNAMIC_DEFAULT = DYNAMIC + (DYNAMIC >> 1)` (`393,216`). - [`crates/victory-gpu/src/list/thin.rs`](file:///C:/Users/Androtim/Documents/My%20Games/CopGame/minivi-triage/repo-main/crates/victory-gpu/src/list/thin.rs#L294-L308) and [`Recording::held_back`](file:///C:/Users/Androtim/Documents/My%20Games/CopGame/minivi-triage/repo-main/crates/victory-gpu/src/list/thin.rs#L381-L393) keep `VICTORY_THIN_GATE` enabled by default and hold back non-first recordings whenever free dynamic slots drop below `all / 4` (or `all / 8 * 5` while any submitted list is still translating, up to `HELD_BACK_MOST_US = 250_000`). 2. **Thin-list translation aggregate CPU cost (`VICTORY_THIN`)** - [`crates/victory-gpu/src/list/thin.rs`](file:///C:/Users/Androtim/Documents/My%20Games/CopGame/minivi-triage/repo-main/crates/victory-gpu/src/list/thin.rs#L40-L41) chunks recorded commands every `CHUNK = 1024` words and dispatches them to `VICTORY_THIN_THREADS` (default `8` worker threads in [`start`](file:///C:/Users/Androtim/Documents/My%20Games/CopGame/minivi-triage/repo-main/crates/victory-gpu/src/list/thin.rs#L622-L624)) via [`Recording::run`](file:///C:/Users/Androtim/Documents/My%20Games/CopGame/minivi-triage/repo-main/crates/victory-gpu/src/list/thin.rs#L489-L554), translating every recorded list call on CPU. 3. **Single-threaded async submitter (`VICTORY_ASYNC_SUBMIT`)** - [`crates/victory-gpu/src/queue/behind.rs`](file:///C:/Users/Androtim/Documents/My%20Games/CopGame/minivi-triage/repo-main/crates/victory-gpu/src/queue/behind.rs#L842-L855) spawns a single `victory-submit` worker thread running [`Lane::serve`](file:///C:/Users/Androtim/Documents/My%20Games/CopGame/minivi-triage/repo-main/crates/victory-gpu/src/queue/behind.rs#L286-L312), which unfolds `Job::Lists` ([`Lane::unfold_entry`](file:///C:/Users/Androtim/Documents/My%20Games/CopGame/minivi-triage/repo-main/crates/victory-gpu/src/queue/behind.rs#L320-L326)) and serially executes submissions/presents on that single thread. ### Related Open PRs - PR #327 (`perf(gpu/host): default-on lazy card compare and hot-piece narrowing`) targets host-side compare/prepare overhead, though `VICTORY_THIN_GATE` backpressure, `VICTORY_THIN` translation cost, and the single-threaded `victory-submit` lane remain open bottlenecks. --- _Automated triage generated with Antigravity CLI (`agy`)._
Androtim commented 2026-12-02 14:17:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-02T14:17:55Z.


Closing as superseded by #276 and recent CPU/submission improvements (#324, #327, #328).

<!-- greyfinch-sync:Androtim/MiniVI:comment:7348312208 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/issues/170#issuecomment-7348312208). Originally posted by [Androtim](https://github.com/Androtim) on 2026-12-02T14:17:55Z. --- Closing as superseded by #276 and recent CPU/submission improvements (#324, #327, #328).
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
Androtim/MiniVI#170
No description provided.