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
Labels
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida#2578
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@edho08 on GitHub · 2026-11-28 15:56 UTC · original
Measured on the playable runtime (
d3d12/), not the Vulkan one. Main atf2072b2fe(2026-11-28 16:11 +0100),scripts/build-nvidia.ps1 -NoDlss,diagprofile. No game files, shader dumps or logs beyond frame lines are included.Machine
Related: #1069 and #2411 are this card on the Vulkan path; this is the first frame-rate report for
d3d12/here.Profile
Series S, render scale 0.5 (960x540), the title's own upscaler.
LEONIDA_WINDOWS_BAR_MB=3072was chosen by the launcher for RAM under 48 GB;LEONIDA_CARD_BUFFERS_MB=1536is the launcher default.Precompile
warm --used: 83,560 known, 1,762 to make, 360 s across 8 processesSteady state in the world, after the pipeline queue reached 0
preparingitself, 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
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.Questions
copying backis 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?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.ps1does not take-WindowsBarMB; onlyplay-nvidia.ps1does) and will add the numbers here.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?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 on GitHub · 2026-11-28 16:27 UTC · original
Follow-up with the A/B I said I would run:
LEONIDA_WINDOWS_BAR_MB=0against the default (3072). Same machine, same profile, windows out of the card's memory.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,
copies24-85 ms.Three things follow, and the first one corrects my own guess in question 2:
copiesfigure that suggested it was scene variation: the same term reads 24-32 ms in this run.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 480to 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 on GitHub · 2026-11-28 16:47 UTC · original
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 on GitHub · 2026-11-29 03:46 UTC · original
Here be few of the game screenshot on Lucia jail cell.
@lerapeurdu62280-debug on GitHub · 2026-12-02 22:39 UTC · original
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
895c472faplus 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):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::tablesis 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_PROFILEon title threads): it is the audio thread; ~40 % of its time isopus_puredecoding, synchronous insideXApuEnqueueCommand(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