d3d12 hwrt: driving on an RTX 5090 is host-bound; the 1.5 GB BLAS cap causes multi-second stalls (#3113 helps) #3135
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?
Imported from ubiquitarianism/leonida. Originally posted by x2Tweek on 2026-12-02T13:11:38Z.
What happens
With
-HardwareRT, city driving on an RTX 5090 at 4K output drops to about 16 fps, with stalls of up to 3 s. TheGPU is idle the whole time ("on the GPU" is 0.0 ms median); the host side and BLAS churn set the frame.
Two things helped, measured over about 5 minutes of city driving each:
BLAS_BUDGET_MOSTinhwrt.rs), even on a 32 GB card. AS memory satat 1.46 GB, with constant eviction and rehydration. With the cap raised to 6 GB (a local env override,
LEONIDA_HW_RT_BLAS_MB=6144), AS memory grew to about 2.8 GB, and the multi-second stalls were gone.VirtualQuerywalks) on top of that cut hostpreparation from 32 to 25 ms per frame, and raised the slowest 10 % of frames from 11.8 to 16.5 fps. So #3113
also holds on a 5090 at 4K.
Caveat: the last drive was a little lighter (5.6k draws per frame median, against 7.0k and 7.6k), so part of its
median gain is the scene. The p10 and the worst frame are the clearer signal.
Remaining cost while driving: about 150 BLAS builds a second (around 50k in 5 min, with about 16k rehydrated and
8k evicted).
execute_blas_batchruns them one by one on the recording thread, at 15 % of wall time even with#3113. Copies stay at 65–90 MB a frame.
Suggestions:
BLAS_BUDGET_MOSTwith the card's local budget (or expose a switch);Happy to run A/B builds on this machine.
Commit
a917c54d6(upstream main, 2026-12-02), diag build, plus a local env override of the BLAS budget and #3113merged for the last column.
System
RTX 5090 32 GB, driver 621.40; i9-14900KS; 64 GB DDR5; Windows 11 build 26300.
Where
In the world, driving through the city at night (on foot: 32–44 fps).
Command and steps
scripts/play-d3d12.ps1 -HardwareRT -SmoothMotion -PrecompileAll -Log, with the Series X profile,LEONIDA_OUTPUT=3840x2160,LEONIDA_RENDER_SCALE=0.6667, the title's upscaler andLEONIDA_REAPER=0(from theF1 menu file). Drive about 5 minutes; the numbers are from the frame log's 5 s lines.
Output
The last "hardware RT" line of the stock run, 15 minutes in:
Also: "ray queries: lifted shaders 14, partly 0, fell back 0 (software)". In the stock run,
host memory pressure ... available_commit_mib=3846at 12:20.A separate observation, not yet compared without HW RT: some car headlights do not seem to light.
AI-assisted: the measurements, the log analysis and the write-up were done with Claude Opus 5.5 (Claude Code). The
numbers come from the runtime's own frame log on the hardware above.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T21:27:03Z.
Open PR #3225 raises the BLAS budget cap up to 6 GiB with VRAM pressure throttling, which targets the 1.5 GB cap reported here. AI-assisted (Claude Code).