d3d12 runtime, Series S 540p, GTX 1660 SUPER 6 GB / Ryzen 5 3600 / 24 GB: 5.9-6.6 fps in the world, and where the 151 ms goes #2578

Open
opened 2026-11-28 15:56:19 +00:00 by edho08 · 4 comments
edho08 commented 2026-11-28 15:56:19 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by edho08 on 2026-11-28T15:56:19Z.


Measured on the playable runtime (d3d12/), not the Vulkan one. Main at f2072b2fe (2026-11-28 16:11 +0100), scripts/build-nvidia.ps1 -NoDlss, diag profile. No game files, shader dumps or logs beyond frame lines are included.

Machine

  • Ryzen 5 3600 (Zen 2, 6c/12t, 3.6 GHz, 32 MB L3)
  • 24 GB DDR4-2400, 8 + 16 GB mixed; pagefile 16-40 GB on a SATA SSD
  • GeForce GTX 1660 SUPER 6 GB (TU116), driver 32.0.16.1088, Windows 11 build 26100
  • BAR1: 256 MiB (Resizable BAR off)
  • No tensor cores, so DLSS and frame generation are unavailable; the picture is the title's own upscaler

Related: #1069 and #2411 are this card on the Vulkan path; this is the first frame-rate report for d3d12/ here.

Profile

scripts\play-d3d12.ps1 -Game <package> -SeriesS -Resolution 540 -NoDlss -NoSmoothMotion -Log `
  -More @{LEONIDA_PIPELINE_WAIT_MS='1500'; LEONIDA_TITLE_GRAPHICS='performance'}

Series S, render scale 0.5 (960x540), the title's own upscaler. LEONIDA_WINDOWS_BAR_MB=3072 was chosen by the launcher for RAM under 48 GB; LEONIDA_CARD_BUFFERS_MB=1536 is the launcher default.

Precompile

  • shaders: 25,672 in the cache, 217 do not translate, 212 s on the first run (15 s after)
  • warm --used: 83,560 known, 1,762 to make, 360 s across 8 processes
    • per pipeline: median 400 ms, p90 7.4 s, p99 11.5 s, worst 13.6 s
    • 1 has no host pipeline

Steady state in the world, after the pipeline queue reached 0

6.6 fps, 151.0 ms/frame
  preparing 69.0 ms (copies 29.3 ms / 38.1 MB, textures 2.4 ms / 13.9 MB)
  on the GPU 20.2 ms
  copying back 32.2 ms / 1.1 MB
  heap buffers pass 29.9 ms
5,945 draws/frame, 307 dropped (structure builder off), 0 being made
VRAM 5,599 of 6,144 MiB; process working set 15.9 GB
textures picked by index: 53,754 uploaded (2,972 MB), 18,417 waiting
31,848 title textures still have no host copy (12,851 MB of title memory)

preparing itself, when the detailed line is on: 9.1 ms asking the write watch, 8.9 ms putting the title's bytes under flights' writes, 67.2 ms in the lists' steps.

Across a session: 5.9-6.6 fps when standing still. Entering a new area drops to 0.1-1.2 fps while 46-98 pipelines are being made, then recovers when that count reaches 0.

Reading

  • 151 ms for 5,945 draws is 25 us a draw. d3d12/README.md's 4060 Ti / 7600X measurement is 7,100 draws in 75-82 ms, 11 us a draw. A Ryzen 5 3600 has about half that per-core speed, so the per-draw gap is in line with the platform rather than the layer.
  • The GPU is 20 ms of 151: at Series S 540p the card is not the limit.
  • The three largest CPU terms are command-list steps (67 ms), copy-back (32 ms) and the heap pass (30 ms). VRAM sits at 91 % of the card with 3 GB of CPU-mapped title windows plus 1,536 MB of card buffers, and 18,417 textures are waiting.

Questions

  1. copying back is 32-41 ms for 1.1 MB a frame, which reads as a sync wait rather than a copy. Is that the expected floor on a 6 GB card, or is there a batching/sync change that would reduce it?
  2. The launcher's under-48 GB default (LEONIDA_WINDOWS_BAR_MB=3072) is half of a 6 GB card's VRAM, and on this machine those windows would be filled by the CPU through a 256 MiB BAR1 (Resizable BAR is off). Would a VRAM- and BAR-aware default (for example <= 1024 MB on a 6 GB card, or none when BAR1 is small) be better, or is the 3 GB window part of why the frame is as good as it is? I am A/B-ing it now with -More @{LEONIDA_WINDOWS_BAR_MB='0'} (note: play-d3d12.ps1 does not take -WindowsBarMB; only play-nvidia.ps1 does) and will add the numbers here.
  3. #471 (d3d12: LEONIDA_TEXTURE_MIP_DROP) targets exactly the texture pressure above. Is it expected to help on a 6 GB card, and is it worth testing against this profile?
  4. The 10 s default wait budget (LEONIDA_PIPELINE_WAIT_MS) produced 0.1 fps frames here because p99 pipelines take 11.5 s. At 1,500 ms the title stays interactive and the missing draws pop in later. Would it be worth documenting the budget as machine-dependent, or lowering the default when the measured p99 is high?

One observation, not isolated

Two runs ended in the title's own breakpoint (0x80000003, the same offset in both) at frame 82, 15-16 s in, console Lockhart, TileHeap 271/3,977 MB. Both runs had synthetic Enter presses injected near boot; runs where input arrived later survived. This is probably our test harness, but it is reported in case it matches a known boot-transition trap.

Not tested

Series X profile, 720p, ray tracing, ReBAR enabled, and any A/B of the settings above.

Measurements were taken with an AI assistant driving the launches, log reads and key injection; every figure is from the runtime's own log lines.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6667772115 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2578). Originally posted by [edho08](https://github.com/edho08) on 2026-11-28T15:56:19Z. --- Measured on the playable runtime (`d3d12/`), not the Vulkan one. Main at `f2072b2fe` (2026-11-28 16:11 +0100), `scripts/build-nvidia.ps1 -NoDlss`, `diag` profile. No game files, shader dumps or logs beyond frame lines are included. ## Machine - Ryzen 5 3600 (Zen 2, 6c/12t, 3.6 GHz, 32 MB L3) - 24 GB DDR4-2400, 8 + 16 GB mixed; pagefile 16-40 GB on a SATA SSD - GeForce GTX 1660 SUPER 6 GB (TU116), driver 32.0.16.1088, Windows 11 build 26100 - BAR1: 256 MiB (Resizable BAR off) - No tensor cores, so DLSS and frame generation are unavailable; the picture is the title's own upscaler Related: #1069 and #2411 are this card on the Vulkan path; this is the first frame-rate report for `d3d12/` here. ## Profile ```powershell scripts\play-d3d12.ps1 -Game <package> -SeriesS -Resolution 540 -NoDlss -NoSmoothMotion -Log ` -More @{LEONIDA_PIPELINE_WAIT_MS='1500'; LEONIDA_TITLE_GRAPHICS='performance'} ``` Series S, render scale 0.5 (960x540), the title's own upscaler. `LEONIDA_WINDOWS_BAR_MB=3072` was chosen by the launcher for RAM under 48 GB; `LEONIDA_CARD_BUFFERS_MB=1536` is the launcher default. ## Precompile - shaders: 25,672 in the cache, 217 do not translate, 212 s on the first run (15 s after) - `warm --used`: 83,560 known, 1,762 to make, 360 s across 8 processes - per pipeline: median 400 ms, p90 7.4 s, p99 11.5 s, worst 13.6 s - 1 has no host pipeline ## Steady state in the world, after the pipeline queue reached 0 ``` 6.6 fps, 151.0 ms/frame preparing 69.0 ms (copies 29.3 ms / 38.1 MB, textures 2.4 ms / 13.9 MB) on the GPU 20.2 ms copying back 32.2 ms / 1.1 MB heap buffers pass 29.9 ms 5,945 draws/frame, 307 dropped (structure builder off), 0 being made VRAM 5,599 of 6,144 MiB; process working set 15.9 GB textures picked by index: 53,754 uploaded (2,972 MB), 18,417 waiting 31,848 title textures still have no host copy (12,851 MB of title memory) ``` `preparing` itself, when the detailed line is on: 9.1 ms asking the write watch, 8.9 ms putting the title's bytes under flights' writes, **67.2 ms in the lists' steps**. Across a session: 5.9-6.6 fps when standing still. Entering a new area drops to 0.1-1.2 fps while 46-98 pipelines are being made, then recovers when that count reaches 0. ## Reading - 151 ms for 5,945 draws is 25 us a draw. `d3d12/README.md`'s 4060 Ti / 7600X measurement is 7,100 draws in 75-82 ms, 11 us a draw. A Ryzen 5 3600 has about half that per-core speed, so the per-draw gap is in line with the platform rather than the layer. - The GPU is 20 ms of 151: at Series S 540p the card is not the limit. - The three largest CPU terms are command-list steps (67 ms), copy-back (32 ms) and the heap pass (30 ms). VRAM sits at 91 % of the card with 3 GB of CPU-mapped title windows plus 1,536 MB of card buffers, and 18,417 textures are waiting. ## Questions 1. `copying back` is 32-41 ms for 1.1 MB a frame, which reads as a sync wait rather than a copy. Is that the expected floor on a 6 GB card, or is there a batching/sync change that would reduce it? 2. The launcher's under-48 GB default (`LEONIDA_WINDOWS_BAR_MB=3072`) is half of a 6 GB card's VRAM, and on this machine those windows would be filled by the CPU through a **256 MiB** BAR1 (Resizable BAR is off). Would a VRAM- and BAR-aware default (for example <= 1024 MB on a 6 GB card, or none when BAR1 is small) be better, or is the 3 GB window part of why the frame is as good as it is? I am A/B-ing it now with `-More @{LEONIDA_WINDOWS_BAR_MB='0'}` (note: `play-d3d12.ps1` does not take `-WindowsBarMB`; only `play-nvidia.ps1` does) and will add the numbers here. 3. #471 (`d3d12`: `LEONIDA_TEXTURE_MIP_DROP`) targets exactly the texture pressure above. Is it expected to help on a 6 GB card, and is it worth testing against this profile? 4. The 10 s default wait budget (`LEONIDA_PIPELINE_WAIT_MS`) produced 0.1 fps frames here because p99 pipelines take 11.5 s. At 1,500 ms the title stays interactive and the missing draws pop in later. Would it be worth documenting the budget as machine-dependent, or lowering the default when the measured p99 is high? ## One observation, not isolated Two runs ended in the title's own breakpoint (`0x80000003`, the same offset in both) at frame 82, 15-16 s in, console Lockhart, TileHeap 271/3,977 MB. Both runs had synthetic Enter presses injected near boot; runs where input arrived later survived. This is probably our test harness, but it is reported in case it matches a known boot-transition trap. ## Not tested Series X profile, 720p, ray tracing, ReBAR enabled, and any A/B of the settings above. Measurements were taken with an AI assistant driving the launches, log reads and key injection; every figure is from the runtime's own log lines.
edho08 commented 2026-11-28 16:27:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by edho08 on 2026-11-28T16:27:51Z.


Follow-up with the A/B I said I would run: LEONIDA_WINDOWS_BAR_MB=0 against the default (3072). Same machine, same profile, windows out of the card's memory.

5.8-6.7 fps, 150-171 ms, 6,877-7,089 draws
preparing 56-74 ms (copies 24-32 ms / 40 MB, textures 3.6-4.5 ms / 23-38 MB)
GPU 41.6-68.7 ms
copy-back 23-34 ms
VRAM 5,894 MiB

With the default (windows in the card's memory), the same area gave 5.6-8.6 fps, 116-179 ms, 3,866-5,150 draws, copies 24-85 ms.

Three things follow, and the first one corrects my own guess in question 2:

  1. The 256 MiB BAR1 theory is not supported. Fps is unchanged and VRAM did not fall (5,894 MiB either way), so those windows were not what filled the card. The 85 ms copies figure that suggested it was scene variation: the same term reads 24-32 ms in this run.
  2. The launcher's under-48 GB default costs nothing measurable here. No reason to change it for this card on the evidence I have.
  3. At ~7k draws the frame is GPU-bound, and much of the "lists' steps" time is the CPU waiting for the card:
lists' steps 74.2 ms: refreshes 34.4 in 39 flushes of 6,454 ranges (5,504 known to copy nothing)
copy-back 23-34 ms for 1.3 MB
GPU 41.6-68.7 ms
of the prepare: 51.1 ms waiting for flights, 26.5 ms waiting for the submission lock

At 5,900 draws the GPU measured 20 ms with no waits; at 7,100 draws it is 69 ms with another 51 ms of the CPU blocked on it. So the split between "CPU prep" and "GPU" is draw-count dependent, and the dense parts of the scene are GPU-bound at Series S 540p on this card.

Next thing I intend to try (single variable, same area): -Resolution 480 to see whether the GPU term and the flight waits fall together, and -More @{LEONIDA_CARD_BUFFERS_MB='512'} since VRAM is at 5.9 of 6.1 GB regardless of the windows. I will add both here.

All figures are from the runtime's own frame and prepare lines. No game data.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7242262402 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2578#issuecomment-7242262402). Originally posted by [edho08](https://github.com/edho08) on 2026-11-28T16:27:51Z. --- Follow-up with the A/B I said I would run: `LEONIDA_WINDOWS_BAR_MB=0` against the default (3072). Same machine, same profile, windows out of the card's memory. ``` 5.8-6.7 fps, 150-171 ms, 6,877-7,089 draws preparing 56-74 ms (copies 24-32 ms / 40 MB, textures 3.6-4.5 ms / 23-38 MB) GPU 41.6-68.7 ms copy-back 23-34 ms VRAM 5,894 MiB ``` With the default (windows in the card's memory), the same area gave 5.6-8.6 fps, 116-179 ms, 3,866-5,150 draws, `copies` 24-85 ms. Three things follow, and the first one corrects my own guess in question 2: 1. **The 256 MiB BAR1 theory is not supported.** Fps is unchanged and VRAM did not fall (5,894 MiB either way), so those windows were not what filled the card. The 85 ms `copies` figure that suggested it was scene variation: the same term reads 24-32 ms in this run. 2. **The launcher's under-48 GB default costs nothing measurable here.** No reason to change it for this card on the evidence I have. 3. **At ~7k draws the frame is GPU-bound, and much of the "lists' steps" time is the CPU waiting for the card:** ``` lists' steps 74.2 ms: refreshes 34.4 in 39 flushes of 6,454 ranges (5,504 known to copy nothing) copy-back 23-34 ms for 1.3 MB GPU 41.6-68.7 ms of the prepare: 51.1 ms waiting for flights, 26.5 ms waiting for the submission lock ``` At 5,900 draws the GPU measured 20 ms with no waits; at 7,100 draws it is 69 ms with another 51 ms of the CPU blocked on it. So the split between "CPU prep" and "GPU" is draw-count dependent, and the dense parts of the scene are GPU-bound at Series S 540p on this card. Next thing I intend to try (single variable, same area): `-Resolution 480` to see whether the GPU term and the flight waits fall together, and `-More @{LEONIDA_CARD_BUFFERS_MB='512'}` since VRAM is at 5.9 of 6.1 GB regardless of the windows. I will add both here. All figures are from the runtime's own frame and prepare lines. No game data.
sigonor90 commented 2026-11-28 16:47:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by sigonor90 on 2026-11-28T16:47:23Z.


Thanks for sharing these benchmarks! I'm curious about the actual visual output in the game world.

Did you get a chance to inspect how the game looks at 540p? Are textures, lighting, shadows, geometry and other visual effects rendering correctly, or are there noticeable graphical glitches, missing assets or rendering artifacts?

If possible, could you share a screenshot or a short video of the gameplay? It would be really helpful to see the current visual state of the runtime, not just the performance numbers.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7242513893 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2578#issuecomment-7242513893). Originally posted by [sigonor90](https://github.com/sigonor90) on 2026-11-28T16:47:23Z. --- Thanks for sharing these benchmarks! I'm curious about the actual visual output in the game world. Did you get a chance to inspect how the game looks at 540p? Are textures, lighting, shadows, geometry and other visual effects rendering correctly, or are there noticeable graphical glitches, missing assets or rendering artifacts? If possible, could you share a screenshot or a short video of the gameplay? It would be really helpful to see the current visual state of the runtime, not just the performance numbers.
edho08 commented 2026-11-29 03:46:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by edho08 on 2026-11-29T03:46:10Z.


game-104245 Capture1 Capture2

Here be few of the game screenshot on Lucia jail cell.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7250247290 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2578#issuecomment-7250247290). Originally posted by [edho08](https://github.com/edho08) on 2026-11-29T03:46:10Z. --- <img width="1834" height="1032" alt="game-104245" src="https://github.com/user-attachments/assets/dec8ce48-2397-4f00-bdcf-e42bf58da79a" /> <img width="1825" height="1041" alt="Capture1" src="https://github.com/user-attachments/assets/154dead7-9bf1-47ca-9689-18ed1b2f8d8f" /> <img width="1817" height="1029" alt="Capture2" src="https://github.com/user-attachments/assets/3bc5b869-d277-42b2-944a-b89f2d03190d" /> Here be few of the game screenshot on Lucia jail cell.
lerapeurdu62280-debug commented 2026-12-02 22:39:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by lerapeurdu62280-debug on 2026-12-02T22:39:21Z.


Measurements on a second Ryzen 5 3600 (6C/12T, RAM at 2666), RX 6600 8 GB, Series S profile, FSR 3.1 frame generation, main 895c472fa plus local branches. ~13.5 rendered fps (73-77 ms a frame) standing in the world.

Where the frame goes (LEONIDA_TIMELINE, the chain each present came out of, mean of 4 frames of 73 ms):

  • 41 ms "outside our spans" on title threads (the game's own code)
  • 21 ms "woken, not running yet" (ready threads waiting for a core)
  • ~15 ms of runtime work on the chain (long list calls, landings, submit steps, VirtualProtect)
  • the card: 1 ms on the chain, "waiting for the card: 0"

The card is not the wall: GPU clock forced to >= 2400 MHz (ADL Overdrive8 FMIN): card 67 % busy, frame time unchanged. 540p: -4 ms only.

CPU per frame (timeline, ran per thread): 6 list threads ~40 ms each (draw::State::tables is 53 % of their samples), submit 41, records 5 x ~9.5, heap-sync 12.7, FSR interpolation thread 14.

Busiest title thread (88 % of a logical CPU, priority 15), sampled externally with SuspendThread/GetThreadContext (no crash, unlike LEONIDA_PROFILE on title threads): it is the audio thread; ~40 % of its time is opus_pure decoding, synchronous inside XApuEnqueueCommand (apu.rs). Lowering it to normal priority: 74.3 vs 74.7 ms, no change.

Guards' lock: "waits for the write trackers' locks per frame: guards 40-115 waits, 13-60 ms" with LEONIDA_PORT_GUARD=1; port 6 line: ~345 faults opened under the shared lock, 11-15 ms waiting for it.

Port 2: "of the title's memcpy/memmove calls into the heap 10682, 0 records they marked"; the fallback finds ~6 view records a frame no store told of (71,000 in a session), writers mostly outside the title image (0x7ffb99ec0000/0080 just below it, and a module at 0x7ffc2d65xxxx).

No measurable change on this PC (A/B or one start each, same spot): play profile (thin LTO, cgu 1), THIN_THREADS 9 (3 = +11 ms worse), UPLOAD_AHEAD, CARD_BUFFERS_MB 3072, WINDOWS_BAR_MB 1024, SUBMIT_FRAMES 2 (worse), CONTENT_TABLES / VIEW_CACHE / ALIAS_QUICK, title thread priorities raised, audio thread priority lowered. The #2940 descriptor-ring Sleep(1) stalls and the #2707 fence spin do not show in this timeline. VBS/HVCI is off.

Conclusion on a 6-core part: the game's own threads and the runtime's ~5 cores of work compete for 12 logical CPUs; nothing single stands out.

EI S.O.S INFO LUDO

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7360984285 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2578#issuecomment-7360984285). Originally posted by [lerapeurdu62280-debug](https://github.com/lerapeurdu62280-debug) on 2026-12-02T22:39:21Z. --- Measurements on a second Ryzen 5 3600 (6C/12T, RAM at 2666), RX 6600 8 GB, Series S profile, FSR 3.1 frame generation, main 895c472fa plus local branches. ~13.5 rendered fps (73-77 ms a frame) standing in the world. **Where the frame goes** (`LEONIDA_TIMELINE`, the chain each present came out of, mean of 4 frames of 73 ms): - 41 ms "outside our spans" on title threads (the game's own code) - 21 ms "woken, not running yet" (ready threads waiting for a core) - ~15 ms of runtime work on the chain (long list calls, landings, submit steps, VirtualProtect) - the card: 1 ms on the chain, "waiting for the card: 0" **The card is not the wall:** GPU clock forced to >= 2400 MHz (ADL Overdrive8 FMIN): card 67 % busy, frame time unchanged. 540p: -4 ms only. **CPU per frame** (timeline, ran per thread): 6 list threads ~40 ms each (`draw::State::tables` is 53 % of their samples), submit 41, records 5 x ~9.5, heap-sync 12.7, FSR interpolation thread 14. **Busiest title thread** (88 % of a logical CPU, priority 15), sampled externally with SuspendThread/GetThreadContext (no crash, unlike `LEONIDA_PROFILE` on title threads): it is the audio thread; ~40 % of its time is `opus_pure` decoding, synchronous inside `XApuEnqueueCommand` (apu.rs). Lowering it to normal priority: 74.3 vs 74.7 ms, no change. **Guards' lock:** "waits for the write trackers' locks per frame: guards 40-115 waits, 13-60 ms" with `LEONIDA_PORT_GUARD=1`; port 6 line: ~345 faults opened under the shared lock, 11-15 ms waiting for it. **Port 2:** "of the title's memcpy/memmove calls into the heap 10682, 0 records they marked"; the fallback finds ~6 view records a frame no store told of (71,000 in a session), writers mostly outside the title image (0x7ffb99ec0000/0080 just below it, and a module at 0x7ffc2d65xxxx). **No measurable change on this PC** (A/B or one start each, same spot): play profile (thin LTO, cgu 1), THIN_THREADS 9 (3 = +11 ms worse), UPLOAD_AHEAD, CARD_BUFFERS_MB 3072, WINDOWS_BAR_MB 1024, SUBMIT_FRAMES 2 (worse), CONTENT_TABLES / VIEW_CACHE / ALIAS_QUICK, title thread priorities raised, audio thread priority lowered. The #2940 descriptor-ring Sleep(1) stalls and the #2707 fence spin do not show in this timeline. VBS/HVCI is off. Conclusion on a 6-core part: the game's own threads and the runtime's ~5 cores of work compete for 12 logical CPUs; nothing single stands out. EI S.O.S INFO LUDO
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
ProjectLeonida/mandy#2578
No description provided.