[report][performance][memory][NVIDIA] Under-test switches (LIST_VIEWS_FRAME, FAST_PUBLISH, STREAM_RETIRE, LIST_LAZY) on an RTX 4050 Laptop 6 GB, Series S, frame generation 3x: no change in fps or memory #269

Open
opened 2026-12-04 09:34:36 +00:00 by blazecoding2009 · 5 comments

Results

The README rows of DARNER_LIST_VIEWS_FRAME, DARNER_FAST_PUBLISH and DARNER_STREAM_RETIRE say they were measured on one RTX 4090 or one PC and are "not yet checked on other cards, Series S or with frame generation", and the row of DARNER_LIST_LAZY says "Less memory; not measured". Here they are on a 6 GB laptop card, Series S, frame generation 3x. None of them changes frame rate or memory beyond the spread between runs here, and none broke anything in ten minutes each.

What ran. One diag exe of main f3840d7 (v2026.12.03.02), only the switches differ. scripts/bench.ps1 -Seconds 240 -Warmup 45 -Flicker, every run from the same copied save, standing in the city at about 13,000 draws a frame, no input. The runs were interleaved (A, L, P, S, Z, then the same again, then A, with runs for two pull requests between them); the shader and pipeline caches were warm, no shader or pipeline was made in a measured window. fps and ms are rendered frames (not generated ones), the median of the window's 5-second lines. Memory figures are the mean of the last twelve copystat: memory and memory now lines of a run (its last minute).

run switches fps ms/frame preparing ms copying back ms p99 ms private MB of it in memory MB shared with the card MB
A1 none 14.0 71.4 28.6 12.6 97.9 17,695 18,235 4,344
A2 none 14.0 71.4 28.5 12.7 94.8 17,865 17,968 4,591
A3 none 14.1 70.7 27.2 12.9 93.6 18,014 18,159 4,651
L1 DARNER_LIST_VIEWS_FRAME=1 DARNER_FAST_LIST_VIEWS=1 DARNER_DIRECT_DYNAMIC_CBV=1 14.2 70.3 27.6 12.6 96.7 17,709 17,750 4,353
L2 the same 14.2 70.7 27.8 12.5 94.3 17,708 18,332 4,413
P1 DARNER_FAST_PUBLISH=1 14.0 71.4 29.9 11.5 97.3 17,620 18,181 4,306
P2 the same 14.0 71.5 28.1 12.9 95.1 17,966 18,155 4,652
S1 DARNER_STREAM_RETIRE=1 14.0 71.4 29.1 13.0 100.9 17,922 18,525 4,540
S2 the same 14.3 70.2 26.5 12.7 96.9 17,805 17,936 4,394
Z1 DARNER_LIST_LAZY=1 14.3 69.8 28.7 13.0 101.1 17,664 18,237 4,546
Z2 the same 14.3 70.1 27.1 13.0 91.9 17,587 17,687 4,518

What was seen.

  • Frame rate: 14.0 to 14.3 fps in every run. The three A runs span 70.7 to 71.4 ms a frame, and every switch run lies within 1 ms of that. The submitting thread's preparing per frame line (median of the last minute) is 37.1 to 39.0 ms in A, 36.8 and 38.1 in L, 39.4 and 38.9 in P, 40.1 and 37.9 in S, 34.0 and 38.2 in Z.
  • Memory: private memory, the part of it in memory (the working set) and the memory shared with the card are inside the spread of the A runs for all four. The -2.4 GB and -2.5 GB of working set of the README rows of DARNER_LIST_VIEWS_FRAME and DARNER_FAST_PUBLISH do not show here.
  • DARNER_LIST_LAZY=1 does what it says to the lists: 1,030 to 1,050 host lists alive against 1,338 to 1,372 without it. Private memory is 190 and 270 MB under the mean of the A runs (17,858 MB) in its two runs, and the A runs themselves span 320 MB, so I can't call it a saving from two runs.
  • Nothing broke: no crash, no device removal, crashes.log lines: 0 in all runs, and the flicker detector counted 0 A-B-A events, black flashes and frozen frames in every switch run (about 3,400 frames judged in each).

What it does not show. One PC, one standing scene, five minutes a run and two runs a switch: no drive, no streaming, so DARNER_STREAM_RETIRE (which acts when the game unmaps textures) had little to do here. The frame is limited by the CPU in this scene (about 13,000 draws, GPU 1 to 2 ms waited for), so this says nothing about a GPU-limited scene.

This report was written with AI assistance (Claude Code).

GPU and driver

RTX 4050 Laptop 6 GB (5,920 MB of its own), driver 621.24

CPU, RAM and Windows version

Ryzen 7 8845HS (8 cores, 16 threads), 32 GB, Windows 11 build 26300

Darner release or commit

main f3840d7 (v2026.12.03.02), built with cargo build --locked --profile diag -p darner --features diagnostics

Settings

Series S, 1080p to 1440p, DLSS Quality, frame generation 3x (DLSS), ray tracing off, texture quality half. DARNER_FIRST_START_PRELOAD=0 in every run (the bench's own).

Logs

Not attached (the runs' logs are 11 files of the bench's folders). I can attach any of them if they are of use.

Are you working on a fix?

No

### Results The README rows of `DARNER_LIST_VIEWS_FRAME`, `DARNER_FAST_PUBLISH` and `DARNER_STREAM_RETIRE` say they were measured on one RTX 4090 or one PC and are "not yet checked on other cards, Series S or with frame generation", and the row of `DARNER_LIST_LAZY` says "Less memory; not measured". Here they are on a 6 GB laptop card, Series S, frame generation 3x. None of them changes frame rate or memory beyond the spread between runs here, and none broke anything in ten minutes each. **What ran.** One diag exe of `main` f3840d7 (v2026.12.03.02), only the switches differ. `scripts/bench.ps1 -Seconds 240 -Warmup 45 -Flicker`, every run from the same copied save, standing in the city at about 13,000 draws a frame, no input. The runs were interleaved (A, L, P, S, Z, then the same again, then A, with runs for two pull requests between them); the shader and pipeline caches were warm, no shader or pipeline was made in a measured window. fps and ms are rendered frames (not generated ones), the median of the window's 5-second lines. Memory figures are the mean of the last twelve `copystat: memory` and `memory now` lines of a run (its last minute). | run | switches | fps | ms/frame | preparing ms | copying back ms | p99 ms | private MB | of it in memory MB | shared with the card MB | |---|---|---:|---:|---:|---:|---:|---:|---:|---:| | A1 | none | 14.0 | 71.4 | 28.6 | 12.6 | 97.9 | 17,695 | 18,235 | 4,344 | | A2 | none | 14.0 | 71.4 | 28.5 | 12.7 | 94.8 | 17,865 | 17,968 | 4,591 | | A3 | none | 14.1 | 70.7 | 27.2 | 12.9 | 93.6 | 18,014 | 18,159 | 4,651 | | L1 | `DARNER_LIST_VIEWS_FRAME=1` `DARNER_FAST_LIST_VIEWS=1` `DARNER_DIRECT_DYNAMIC_CBV=1` | 14.2 | 70.3 | 27.6 | 12.6 | 96.7 | 17,709 | 17,750 | 4,353 | | L2 | the same | 14.2 | 70.7 | 27.8 | 12.5 | 94.3 | 17,708 | 18,332 | 4,413 | | P1 | `DARNER_FAST_PUBLISH=1` | 14.0 | 71.4 | 29.9 | 11.5 | 97.3 | 17,620 | 18,181 | 4,306 | | P2 | the same | 14.0 | 71.5 | 28.1 | 12.9 | 95.1 | 17,966 | 18,155 | 4,652 | | S1 | `DARNER_STREAM_RETIRE=1` | 14.0 | 71.4 | 29.1 | 13.0 | 100.9 | 17,922 | 18,525 | 4,540 | | S2 | the same | 14.3 | 70.2 | 26.5 | 12.7 | 96.9 | 17,805 | 17,936 | 4,394 | | Z1 | `DARNER_LIST_LAZY=1` | 14.3 | 69.8 | 28.7 | 13.0 | 101.1 | 17,664 | 18,237 | 4,546 | | Z2 | the same | 14.3 | 70.1 | 27.1 | 13.0 | 91.9 | 17,587 | 17,687 | 4,518 | **What was seen.** - Frame rate: 14.0 to 14.3 fps in every run. The three A runs span 70.7 to 71.4 ms a frame, and every switch run lies within 1 ms of that. The submitting thread's `preparing per frame` line (median of the last minute) is 37.1 to 39.0 ms in A, 36.8 and 38.1 in L, 39.4 and 38.9 in P, 40.1 and 37.9 in S, 34.0 and 38.2 in Z. - Memory: private memory, the part of it in memory (the working set) and the memory shared with the card are inside the spread of the A runs for all four. The -2.4 GB and -2.5 GB of working set of the README rows of `DARNER_LIST_VIEWS_FRAME` and `DARNER_FAST_PUBLISH` do not show here. - `DARNER_LIST_LAZY=1` does what it says to the lists: 1,030 to 1,050 host lists alive against 1,338 to 1,372 without it. Private memory is 190 and 270 MB under the mean of the A runs (17,858 MB) in its two runs, and the A runs themselves span 320 MB, so I can't call it a saving from two runs. - Nothing broke: no crash, no device removal, `crashes.log lines: 0` in all runs, and the flicker detector counted 0 A-B-A events, black flashes and frozen frames in every switch run (about 3,400 frames judged in each). **What it does not show.** One PC, one standing scene, five minutes a run and two runs a switch: no drive, no streaming, so `DARNER_STREAM_RETIRE` (which acts when the game unmaps textures) had little to do here. The frame is limited by the CPU in this scene (about 13,000 draws, GPU 1 to 2 ms waited for), so this says nothing about a GPU-limited scene. This report was written with AI assistance (Claude Code). ### GPU and driver RTX 4050 Laptop 6 GB (5,920 MB of its own), driver 621.24 ### CPU, RAM and Windows version Ryzen 7 8845HS (8 cores, 16 threads), 32 GB, Windows 11 build 26300 ### Darner release or commit main f3840d7 (v2026.12.03.02), built with cargo build --locked --profile diag -p darner --features diagnostics ### Settings Series S, 1080p to 1440p, DLSS Quality, frame generation 3x (DLSS), ray tracing off, texture quality half. `DARNER_FIRST_START_PRELOAD=0` in every run (the bench's own). ### Logs Not attached (the runs' logs are 11 files of the bench's folders). I can attach any of them if they are of use. ### Are you working on a fix? No

I’ll update the two README entries that say LIST_LAZY is unmeasured and LIST_VIEWS_FRAME has not been checked on Series S or with frame generation. I’ll attribute the measurements to this report and keep the three-switch configuration explicit.

I’ll update the two README entries that say LIST_LAZY is unmeasured and LIST_VIEWS_FRAME has not been checked on Series S or with frame generation. I’ll attribute the measurements to this report and keep the three-switch configuration explicit.
Collaborator

Another data point on the descriptor switches, from a different card and a different exe. The short version: on this PC they cut descriptor work but I can't see it in fps, and the frame isn't limited where they help.

What ran. This is not the exe or the switch set from the report above. It is a diag build of one of my branches (main f3840d73d plus two diagnostic commits, head 599bf6f3a), which adds split counters for the descriptor fill and a switch that adds a fixed delay on the submit thread (DARNER_DIAG_SUBMIT_DELAY_US). Neither is upstream. The switch set is also different: DARNER_LIST_VIEWS_FRAME, DARNER_FAST_LIST_VIEWS and DARNER_DIRECT_DYNAMIC_CBV as in the report, plus DARNER_SHARED_TABLES and DARNER_SAME_TABLES. I did not test DARNER_FAST_PUBLISH, DARNER_STREAM_RETIRE or DARNER_LIST_LAZY.

PC: RTX 2070 SUPER 8 GB (Turing), driver 621.40, ReBAR off, Ryzen 7 5800X, 32 GB, Windows 11 Pro Insider 26320, GPU clocks unlocked. Series S, DLSS Performance, frame generation off, my usual play set of switches, free roaming. Each row is one run (n = 1 per arm); the numbers are the last 180 one-second lines of that run. From my past runs, two launches of the same setup differ by about 1 fps.

arm avg fps p95 ms descriptor fill, ms per frame (summed CPU over the recording threads)
no switches, no delay 13.92 77.8 110.4
no switches, +5 ms submit delay 14.67 75.5 103.6
no switches, +10 ms 15.77 71.0 102.0
no switches, +20 ms 15.53 72.9 99.3
the five switches, no delay 15.66 71.3 100.2

What I see.

  • Adding 5, 10 and 20 ms of CPU time on the submit thread did not lower fps (it went up, which is launch noise). So on this PC the frame is not limited by the submit thread, and a switch that saves CPU time there can't show in fps. That is the likely reason I see no fps change either.
  • The switches do remove work: copy calls per frame fall from about 23,000 to 9,600 (descriptors copied 73k to 59k, views created 22k to 18k; last log line of the first and last run).
  • The saved time is small and I can't separate it from the spread. Fill is 100.2 ms with the switches, against 110.4 without, but the three delay runs, which have no switches, are at 99 to 104 ms. The last line alone reads 99.3 against 93.4 ms. So "about 6 ms" is an upper estimate, not a result.
  • fps with the switches is 15.66, against 13.92 to 15.77 for the other arms. That is inside the launch noise, so unresolved, not a gain and not a loss.
  • Where the fill time goes (mean of the last 40 counter lines, no switches, no delay): cache lookups for the views 51 ms, the remaining per-slot work 40 ms, creating descriptors 17 ms, copies 2.5 ms. The copy calls these switches cut are the smallest part.

What would show it in fps. A PC where the CPU is the limit: a fast card at low settings or a slower CPU, like the laptop in the report where the CPU limits the scene. I can't test that here.

Not measured. Memory: I did not record working set or private memory, so this says nothing about the README's working-set numbers. Also not measured: the three other switches, any other scene, and a second run per arm. No crash or device removal in these five runs. These are game results only; I ran no cargo gates for this.

Run logs are available if you want them.

This comment was written with AI assistance (Claude Code).

Another data point on the descriptor switches, from a different card and a different exe. The short version: on this PC they cut descriptor work but I can't see it in fps, and the frame isn't limited where they help. **What ran.** This is not the exe or the switch set from the report above. It is a diag build of one of my branches (main f3840d73d plus two diagnostic commits, head 599bf6f3a), which adds split counters for the descriptor fill and a switch that adds a fixed delay on the submit thread (`DARNER_DIAG_SUBMIT_DELAY_US`). Neither is upstream. The switch set is also different: `DARNER_LIST_VIEWS_FRAME`, `DARNER_FAST_LIST_VIEWS` and `DARNER_DIRECT_DYNAMIC_CBV` as in the report, plus `DARNER_SHARED_TABLES` and `DARNER_SAME_TABLES`. I did not test `DARNER_FAST_PUBLISH`, `DARNER_STREAM_RETIRE` or `DARNER_LIST_LAZY`. PC: RTX 2070 SUPER 8 GB (Turing), driver 621.40, ReBAR off, Ryzen 7 5800X, 32 GB, Windows 11 Pro Insider 26320, GPU clocks unlocked. Series S, DLSS Performance, frame generation off, my usual play set of switches, free roaming. Each row is one run (n = 1 per arm); the numbers are the last 180 one-second lines of that run. From my past runs, two launches of the same setup differ by about 1 fps. | arm | avg fps | p95 ms | descriptor fill, ms per frame (summed CPU over the recording threads) | |---|---:|---:|---:| | no switches, no delay | 13.92 | 77.8 | 110.4 | | no switches, +5 ms submit delay | 14.67 | 75.5 | 103.6 | | no switches, +10 ms | 15.77 | 71.0 | 102.0 | | no switches, +20 ms | 15.53 | 72.9 | 99.3 | | the five switches, no delay | 15.66 | 71.3 | 100.2 | **What I see.** - Adding 5, 10 and 20 ms of CPU time on the submit thread did not lower fps (it went up, which is launch noise). So on this PC the frame is not limited by the submit thread, and a switch that saves CPU time there can't show in fps. That is the likely reason I see no fps change either. - The switches do remove work: copy calls per frame fall from about 23,000 to 9,600 (descriptors copied 73k to 59k, views created 22k to 18k; last log line of the first and last run). - The saved time is small and I can't separate it from the spread. Fill is 100.2 ms with the switches, against 110.4 without, but the three delay runs, which have no switches, are at 99 to 104 ms. The last line alone reads 99.3 against 93.4 ms. So "about 6 ms" is an upper estimate, not a result. - fps with the switches is 15.66, against 13.92 to 15.77 for the other arms. That is inside the launch noise, so unresolved, not a gain and not a loss. - Where the fill time goes (mean of the last 40 counter lines, no switches, no delay): cache lookups for the views 51 ms, the remaining per-slot work 40 ms, creating descriptors 17 ms, copies 2.5 ms. The copy calls these switches cut are the smallest part. **What would show it in fps.** A PC where the CPU is the limit: a fast card at low settings or a slower CPU, like the laptop in the report where the CPU limits the scene. I can't test that here. **Not measured.** Memory: I did not record working set or private memory, so this says nothing about the README's working-set numbers. Also not measured: the three other switches, any other scene, and a second run per arm. No crash or device removal in these five runs. These are game results only; I ran no cargo gates for this. Run logs are available if you want them. This comment was written with AI assistance (Claude Code).
Collaborator

Does anyone here have a fast card (RTX 4080, 4090, 5080, 5090 or similar) and a few minutes? One log from you would answer a question I can't answer on my PC.

Why. On my RTX 2070 SUPER the card sets the frame time, so cutting CPU work shows no fps gain here (my numbers are in my comment above). On a fast card the CPU may be the limit instead. The CPU work I mean is the descriptor tables that the title's recording threads fill for every draw. On my PC the recording threads spend about 26 ms each per frame in list calls (about 206 ms over 8 threads), and about 100 ms of that total is filling descriptor tables (one diagnostics run, 2026-12-04). Whether that sets your frame time, I can't tell from here. That is a guess, not a result.

What to run. The normal release exe doesn't write the lines I need, so this needs a diagnostics build. It is built from source; I won't send an exe.

  1. Install Rust and the Visual Studio C++ build tools, if you don't have them.
  2. Get the branch and build it:
    git clone https://git.gtahub.st/Jesper-A/Darner
    cd Darner
    git checkout up-diag-desc-tables
    cargo build --locked --profile diag -p darner --features diagnostics
    
    The exe is target\diag\darner.exe. The branch is on https://git.gtahub.st/Jesper-A/Darner, branch up-diag-desc-tables; see PR #307. It is main (f3840d73d) plus three diagnostics-only commits: counters and timers around descriptor work, and one switch that stays off. The timers and the allocation counter add a little CPU cost, so the numbers read slightly high, and it may run a little slower than the release exe.
  3. Start the game with that exe the way you normally do, with your usual settings. Don't turn on extra DARNER_* switches for this run.
  4. Walk around in the open world for about 3 minutes. No menus, no loading screens at the end.
  5. Attach the newest darner-play-<date>-<time>-<number>.log or darner-nvidia-<date>-<time>.log from %LOCALAPPDATA%\darner\logs\ (or logs under DARNER_HOME). If it is too big for the site, zip it. Please remove your user name, PC name and any tokens from the file first.

Please tell me: graphics card and driver, CPU (model, cores/threads), RAM, resolution, DLSS mode, frame generation on or off, console profile (Series S or X), and the Darner version or commit.

Optional: a PresentMon 2.x CSV from the same 3 minutes (its GPUBusy and CPUWait columns would show the same thing from outside).

What I will read, and why (for the maintainer too). Three kinds of line in the log:

  • list calls by thread and recording per frame: how much time each recording thread spends in list calls per frame.
  • desc tables: how much of that is descriptor tables.
  • frame chain: how long the title's main thread waits before it starts the next frame, next to how long the frame takes.

If the recording threads are busy for about as long as the frame and the main thread doesn't wait, the CPU sets your frame time and descriptor work is worth cutting. If the main thread waits as it does on mine, the card is still the limit and it isn't. Either answer helps.

Thank you.

This comment was written with AI assistance (Claude Code).

Does anyone here have a fast card (RTX 4080, 4090, 5080, 5090 or similar) and a few minutes? One log from you would answer a question I can't answer on my PC. **Why.** On my RTX 2070 SUPER the card sets the frame time, so cutting CPU work shows no fps gain here (my numbers are in my comment above). On a fast card the CPU may be the limit instead. The CPU work I mean is the descriptor tables that the title's recording threads fill for every draw. On my PC the recording threads spend about 26 ms each per frame in list calls (about 206 ms over 8 threads), and about 100 ms of that total is filling descriptor tables (one diagnostics run, 2026-12-04). Whether that sets your frame time, I can't tell from here. That is a guess, not a result. **What to run.** The normal release exe doesn't write the lines I need, so this needs a diagnostics build. It is built from source; I won't send an exe. 1. Install Rust and the Visual Studio C++ build tools, if you don't have them. 2. Get the branch and build it: ``` git clone https://git.gtahub.st/Jesper-A/Darner cd Darner git checkout up-diag-desc-tables cargo build --locked --profile diag -p darner --features diagnostics ``` The exe is `target\diag\darner.exe`. The branch is on https://git.gtahub.st/Jesper-A/Darner, branch `up-diag-desc-tables`; see PR #307. It is `main` (f3840d73d) plus three diagnostics-only commits: counters and timers around descriptor work, and one switch that stays off. The timers and the allocation counter add a little CPU cost, so the numbers read slightly high, and it may run a little slower than the release exe. 3. Start the game with that exe the way you normally do, with your usual settings. Don't turn on extra `DARNER_*` switches for this run. 4. Walk around in the open world for about 3 minutes. No menus, no loading screens at the end. 5. Attach the newest `darner-play-<date>-<time>-<number>.log` or `darner-nvidia-<date>-<time>.log` from `%LOCALAPPDATA%\darner\logs\` (or `logs` under `DARNER_HOME`). If it is too big for the site, zip it. Please remove your user name, PC name and any tokens from the file first. **Please tell me:** graphics card and driver, CPU (model, cores/threads), RAM, resolution, DLSS mode, frame generation on or off, console profile (Series S or X), and the Darner version or commit. **Optional:** a PresentMon 2.x CSV from the same 3 minutes (its GPUBusy and CPUWait columns would show the same thing from outside). **What I will read, and why** (for the maintainer too). Three kinds of line in the log: - `list calls by thread` and `recording per frame`: how much time each recording thread spends in list calls per frame. - `desc tables`: how much of that is descriptor tables. - `frame chain`: how long the title's main thread waits before it starts the next frame, next to how long the frame takes. If the recording threads are busy for about as long as the frame and the main thread doesn't wait, the CPU sets your frame time and descriptor work is worth cutting. If the main thread waits as it does on mine, the card is still the limit and it isn't. Either answer helps. Thank you. This comment was written with AI assistance (Claude Code).
Contributor

Here is one from an RTX 5080, with one big difference from what you asked for: this is Linux under Proton, not Windows (vkd3d-proton turns D3D12 into Vulkan, which adds CPU work of its own). So it may not answer the question for Windows; take it as a data point.

Build. Your branch up-diag-desc-tables at c03ed4e, built with the diagnostics feature (cross-built with cargo xwin), plus the small Linux patches I always run with (64 MB stacks for the pipeline workers, a guard for driver compiler crashes, skipping the pipelines a warm saw hang, and two input helpers for scripted test runs), none of which touches descriptor work. No extra DARNER_* switches for this run.

System. RTX 5080 16 GB, NVIDIA 620.73.04; Ryzen 7 7800X3D (8 cores, 16 threads); 30 GB; Arch Linux, Proton Experimental 11.0-20261123b.

Settings. Series X profile, 2560x1440, DLSS Balanced, frame generation off, my usual 30 fps cap (F1). The run mostly stayed under the cap (16 to 29 fps while walking), but frames that reached it waited for it.

The run. My own save, about 3.5 minutes walking in the open world, quit while walking. The first two minutes include loading and pipelines being compiled; from 14:00:20 to the end (14:03:47) the log shows 0 pipelines being made, so that is the window to read.

What I see in that window, for a quick look (yours to interpret):

  • list calls by thread: 8 threads, 23 to 24 ms each per frame.
  • recording per frame: about 185 to 189 ms of list calls per frame over all recording threads, 0.0 ms waiting for pipelines.
  • desc tables: about 138 to 139 ms of that in tables() (74 %), of it about 80 ms filling about 79,000 slots per frame.
  • frame chain: frames of 46 to 72 ms; the main thread stood 0 to 29 ms at the line's gate.

Log attached (zipped, user name replaced). It is the game's whole output for that session, under a name of my own.

Here is one from an RTX 5080, with one big difference from what you asked for: this is **Linux under Proton**, not Windows (vkd3d-proton turns D3D12 into Vulkan, which adds CPU work of its own). So it may not answer the question for Windows; take it as a data point. **Build.** Your branch `up-diag-desc-tables` at c03ed4e, built with the `diagnostics` feature (cross-built with `cargo xwin`), plus the small Linux patches I always run with (64 MB stacks for the pipeline workers, a guard for driver compiler crashes, skipping the pipelines a warm saw hang, and two input helpers for scripted test runs), none of which touches descriptor work. No extra `DARNER_*` switches for this run. **System.** RTX 5080 16 GB, NVIDIA 620.73.04; Ryzen 7 7800X3D (8 cores, 16 threads); 30 GB; Arch Linux, Proton Experimental 11.0-20261123b. **Settings.** Series X profile, 2560x1440, DLSS Balanced, frame generation off, my usual 30 fps cap (F1). The run mostly stayed under the cap (16 to 29 fps while walking), but frames that reached it waited for it. **The run.** My own save, about 3.5 minutes walking in the open world, quit while walking. The first two minutes include loading and pipelines being compiled; from 14:00:20 to the end (14:03:47) the log shows 0 pipelines being made, so that is the window to read. What I see in that window, for a quick look (yours to interpret): - `list calls by thread`: 8 threads, 23 to 24 ms each per frame. - `recording per frame`: about 185 to 189 ms of list calls per frame over all recording threads, 0.0 ms waiting for pipelines. - `desc tables`: about 138 to 139 ms of that in `tables()` (74 %), of it about 80 ms filling about 79,000 slots per frame. - `frame chain`: frames of 46 to 72 ms; the main thread stood 0 to 29 ms at the line's gate. Log attached (zipped, user name replaced). It is the game's whole output for that session, under a name of my own.
Contributor

Here is one from Windows on a fast card: RTX 5080, your branch up-diag-desc-tables at c03ed4e. Two runs, the second with your DARNER_DIAG_SUBMIT_DELAY_US. Short version: the card is not the limit here, but the threads that fill descriptor tables are not either. Our submitting thread is.

System. RTX 5080 16 GB, driver 621.47; Ryzen 7 5800X3D (8 cores, 16 threads); 32 GB; Windows 11 build 26300.

Settings. Series X profile, 2560x1440, DLSS Balanced, frame generation off, ray tracing off, no frame cap.

Build and start. cargo build --locked --profile diag -p darner --features diagnostics, started with scripts\play-nvidia.ps1 -NoMenu -Build diag -Dlss balanced -Fps 1000, so the launcher's own switch set and nothing of mine on top except test plumbing: DARNER_DATA_DIR (a save copied fresh for each run), DARNER_SKIP_BINK=1, DARNER_KEYS_FILE and DARNER_INPUT_REPLAY (a recorded walk, so both runs take the same route). Run 2 adds DARNER_DIAG_SUBMIT_DELAY_US=10000.

The runs. Each loads the save, stands 30 s, then walks 200 s through the city on foot, at night. The numbers are those last 200 s. One warm-up run of the new exe came before, so pipelines were made by then: waiting for pipelines is 0.0 to 0.1 ms a frame in run 1 and at most 2.6 ms in run 2.

Means per frame over the window (p10 to p90 in brackets where given):

run 1, no delay run 2, +10 ms on the submit thread
frames in the window 4,549 3,623
fps 22.7 18.1
frame, ms (frame chain) 44.1 (32.3 to 57.1) 55.4 (44.2 to 67.3)
draws 7,307 7,727
list calls by thread: threads, ms each 8, 29.9 (22.0 to 37.5) 8, 34.5 (26.3 to 40.5)
recording per frame: list calls, ms over all threads 53,780, 238.7 60,327, 274.9
desc tables: tables() calls, ms, share of list calls 14,863, 163.1, 68 % 17,067, 191.1, 69 %
fill, ms, for slots 93.9 for 85,092 105.4 for 100,108
fill split: make_listed / rest / create / copy, ms 43.1 / 32.6 / 15.4 / 2.9 48.9 / 36.6 / 16.7 / 3.2
views created 18,489 21,204
frame chain: the title stood at the line's gate, ms 12.5 (4.4 to 19.1) 19.5 (9.8 to 29.3)
frame chain: our submitting thread busy, ms 41.9 (95 % of the frame) 53.5 (97 %)
frame chain: it stood with the line empty, ms 0.0 0.0
the card's clock: the card busy 60 % 50 %
the card's clock: the submitting thread stood waiting for the card, ms 0.1 0.2

What I see.

  • It is neither of your two cases. The main thread does wait, 12.5 ms of a 44 ms frame at the line's gate, but not for the card: the card is about 60 % busy, and the submitting thread never stands waiting for it and never stands with the line empty. It is busy for 95 % of the frame.
  • The delay run says the same from the other side. 10 ms of spinning a frame on the submit thread made the frame 11.3 ms longer (44.1 to 55.4 ms, 22.7 to 18.1 fps). On your 2070 SUPER the same switch did nothing, so this is the difference a fast card makes here.
  • The threads that do the list calls spend about 30 ms each in them of a 44 ms frame, and tables() is 68 % of that (74 % in the Linux run above). With the launcher's DARNER_THIN=1 these are the 8 darner-list-# threads of ours. They are not what the frame waits for on this PC.
  • That doesn't make descriptor work free here. The process keeps about 14 of the 16 logical CPUs busy in this scene (thread CPU times: the darner-list-# threads are about 250 ms of CPU a frame of about 640), so the submitting thread shares cores with them. Its own CPU time is about 24 ms a frame; the rest of its 42 ms is waits inside its jobs (the preparing per frame line names about 5 ms of them as waiting for the submission lock). Whether cutting descriptor work would shorten those waits, these runs can't say.

One related number, from a different setup. Earlier today I tried keeping those threads' list views over frames instead of per frame, as an in-run A/B on my usual settings (a release-profile build, Series S profile, another switch set, so not comparable with the table above). It made about 14 % fewer views a frame and changed nothing I could measure: frame time -0.02 ms ± 0.21 of 38.1 ms over 87 phases, and the translation threads' time per 1,000 list calls 3.702 against 3.700 ms. So on this PC, at least that part of the fill doesn't show in the frame.

Not measured. One PC, one route, one run per arm, on foot only (no driving), no PresentMon. The two runs don't see exactly the same frames (run 2 has 6 % more draws a frame). The driver was still compiling in the background for the new exe (its D3D Background Thread used about 50 ms of CPU a frame in run 1), which takes cores from everything else. No crash and no device removal; each log has one Streamline error line at startup (presentCommon() was not observed) and none in the window.

A few raw lines from the middle of run 1:

list calls by thread: 8 threads; thread 23080 28 ms in 6147 calls, thread 3268 27 ms in 6092 calls, thread 28052 27 ms in 6294 calls, thread 32772 27 ms in 6373 calls, thread 4296 27 ms in 6717 calls, thread 22580 27 ms in 6237 calls
recording per frame (121 frames): 50203 list calls 217.8 ms (all recording threads); 0.0 ms waiting for pipelines; dynamic slots: 14883 tables asked, 0 refused, 4.5 ms searching; [...] guards 11.0 ms
desc tables: per frame 13644 tables() calls 149.00 ms (68.4% of 217.8 ms list calls); hash 2.68 ms for 422303 records; dynamic() 4.48 ms; fill 85.36 ms for 75324 slots; fresh_tables 6252 hits 10646 misses; 16285 views created, 59039 slots from make_listed; 4238 root tables
desc fill split: per frame fill 85.36 ms = create 14.45 ms in 50322 calls + copy 2.54 ms in 23955 calls (75600 descriptors) + make_listed 39.42 ms in 75324 calls (20103 made a view) + rest 28.95 ms
frame chain: frame 14807 (35.9 ms from the present before to its own): the title submitted 27 times +20.0..+35.9, called present +35.9 and stood 13.4 ms at the line's gate, began the next frame +60.1; our submitting thread +49.4..+83.5, busy 32.9 ms in 36 jobs, stood 0.0 ms with the line empty and 0.0 ms at a head not free to go, sent the present +83.5; the card ran 22 flights, seen done +58.1..+91.0; the title told 163 times +58.6..+91.9, at most 3.2 ms after the relay took the flight
the card's clock per frame: nothing of ours queued 13.1 ms (the card about 67% busy by this count), 11.6 ms of that while the submitting thread was working (the card idle behind us), the rest outside marked submit work; the submitting thread stood waiting for the card 0.0 ms

Both logs are kept; say so if you want the whole files and I'll attach them.

Here is one from Windows on a fast card: RTX 5080, your branch `up-diag-desc-tables` at `c03ed4e`. Two runs, the second with your `DARNER_DIAG_SUBMIT_DELAY_US`. Short version: the card is not the limit here, but the threads that fill descriptor tables are not either. Our submitting thread is. **System.** RTX 5080 16 GB, driver 621.47; Ryzen 7 5800X3D (8 cores, 16 threads); 32 GB; Windows 11 build 26300. **Settings.** Series X profile, 2560x1440, DLSS Balanced, frame generation off, ray tracing off, no frame cap. **Build and start.** `cargo build --locked --profile diag -p darner --features diagnostics`, started with `scripts\play-nvidia.ps1 -NoMenu -Build diag -Dlss balanced -Fps 1000`, so the launcher's own switch set and nothing of mine on top except test plumbing: `DARNER_DATA_DIR` (a save copied fresh for each run), `DARNER_SKIP_BINK=1`, `DARNER_KEYS_FILE` and `DARNER_INPUT_REPLAY` (a recorded walk, so both runs take the same route). Run 2 adds `DARNER_DIAG_SUBMIT_DELAY_US=10000`. **The runs.** Each loads the save, stands 30 s, then walks 200 s through the city on foot, at night. The numbers are those last 200 s. One warm-up run of the new exe came before, so pipelines were made by then: `waiting for pipelines` is 0.0 to 0.1 ms a frame in run 1 and at most 2.6 ms in run 2. Means per frame over the window (p10 to p90 in brackets where given): | | run 1, no delay | run 2, +10 ms on the submit thread | |---|---:|---:| | frames in the window | 4,549 | 3,623 | | fps | 22.7 | 18.1 | | frame, ms (`frame chain`) | 44.1 (32.3 to 57.1) | 55.4 (44.2 to 67.3) | | draws | 7,307 | 7,727 | | `list calls by thread`: threads, ms each | 8, 29.9 (22.0 to 37.5) | 8, 34.5 (26.3 to 40.5) | | `recording per frame`: list calls, ms over all threads | 53,780, 238.7 | 60,327, 274.9 | | `desc tables`: `tables()` calls, ms, share of list calls | 14,863, 163.1, 68 % | 17,067, 191.1, 69 % | | fill, ms, for slots | 93.9 for 85,092 | 105.4 for 100,108 | | fill split: make_listed / rest / create / copy, ms | 43.1 / 32.6 / 15.4 / 2.9 | 48.9 / 36.6 / 16.7 / 3.2 | | views created | 18,489 | 21,204 | | `frame chain`: the title stood at the line's gate, ms | 12.5 (4.4 to 19.1) | 19.5 (9.8 to 29.3) | | `frame chain`: our submitting thread busy, ms | 41.9 (95 % of the frame) | 53.5 (97 %) | | `frame chain`: it stood with the line empty, ms | 0.0 | 0.0 | | `the card's clock`: the card busy | 60 % | 50 % | | `the card's clock`: the submitting thread stood waiting for the card, ms | 0.1 | 0.2 | **What I see.** - It is neither of your two cases. The main thread does wait, 12.5 ms of a 44 ms frame at the line's gate, but not for the card: the card is about 60 % busy, and the submitting thread never stands waiting for it and never stands with the line empty. It is busy for 95 % of the frame. - The delay run says the same from the other side. 10 ms of spinning a frame on the submit thread made the frame 11.3 ms longer (44.1 to 55.4 ms, 22.7 to 18.1 fps). On your 2070 SUPER the same switch did nothing, so this is the difference a fast card makes here. - The threads that do the list calls spend about 30 ms each in them of a 44 ms frame, and `tables()` is 68 % of that (74 % in the Linux run above). With the launcher's `DARNER_THIN=1` these are the 8 `darner-list-#` threads of ours. They are not what the frame waits for on this PC. - That doesn't make descriptor work free here. The process keeps about 14 of the 16 logical CPUs busy in this scene (thread CPU times: the `darner-list-#` threads are about 250 ms of CPU a frame of about 640), so the submitting thread shares cores with them. Its own CPU time is about 24 ms a frame; the rest of its 42 ms is waits inside its jobs (the `preparing per frame` line names about 5 ms of them as waiting for the submission lock). Whether cutting descriptor work would shorten those waits, these runs can't say. **One related number, from a different setup.** Earlier today I tried keeping those threads' list views over frames instead of per frame, as an in-run A/B on my usual settings (a release-profile build, Series S profile, another switch set, so not comparable with the table above). It made about 14 % fewer views a frame and changed nothing I could measure: frame time -0.02 ms ± 0.21 of 38.1 ms over 87 phases, and the translation threads' time per 1,000 list calls 3.702 against 3.700 ms. So on this PC, at least that part of the fill doesn't show in the frame. **Not measured.** One PC, one route, one run per arm, on foot only (no driving), no PresentMon. The two runs don't see exactly the same frames (run 2 has 6 % more draws a frame). The driver was still compiling in the background for the new exe (its `D3D Background Thread` used about 50 ms of CPU a frame in run 1), which takes cores from everything else. No crash and no device removal; each log has one Streamline error line at startup (`presentCommon() was not observed`) and none in the window. A few raw lines from the middle of run 1: ``` list calls by thread: 8 threads; thread 23080 28 ms in 6147 calls, thread 3268 27 ms in 6092 calls, thread 28052 27 ms in 6294 calls, thread 32772 27 ms in 6373 calls, thread 4296 27 ms in 6717 calls, thread 22580 27 ms in 6237 calls recording per frame (121 frames): 50203 list calls 217.8 ms (all recording threads); 0.0 ms waiting for pipelines; dynamic slots: 14883 tables asked, 0 refused, 4.5 ms searching; [...] guards 11.0 ms desc tables: per frame 13644 tables() calls 149.00 ms (68.4% of 217.8 ms list calls); hash 2.68 ms for 422303 records; dynamic() 4.48 ms; fill 85.36 ms for 75324 slots; fresh_tables 6252 hits 10646 misses; 16285 views created, 59039 slots from make_listed; 4238 root tables desc fill split: per frame fill 85.36 ms = create 14.45 ms in 50322 calls + copy 2.54 ms in 23955 calls (75600 descriptors) + make_listed 39.42 ms in 75324 calls (20103 made a view) + rest 28.95 ms frame chain: frame 14807 (35.9 ms from the present before to its own): the title submitted 27 times +20.0..+35.9, called present +35.9 and stood 13.4 ms at the line's gate, began the next frame +60.1; our submitting thread +49.4..+83.5, busy 32.9 ms in 36 jobs, stood 0.0 ms with the line empty and 0.0 ms at a head not free to go, sent the present +83.5; the card ran 22 flights, seen done +58.1..+91.0; the title told 163 times +58.6..+91.9, at most 3.2 ms after the relay took the flight the card's clock per frame: nothing of ours queued 13.1 ms (the card about 67% busy by this count), 11.6 ms of that while the submitting thread was working (the card idle behind us), the rest outside marked submit work; the submitting thread stood waiting for the card 0.0 ms ``` Both logs are kept; say so if you want the whole files and I'll attach them.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner#269
No description provided.