Isnt using GPU Only CPU RTX3050 #2914
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#2914
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?
@Moheiseni3D on GitHub · 2026-12-01 17:55 UTC · original
What happens
i tried the build CPU was 100% GPU 0%
Commit
System
Windows 11 ,12400F,32GB Ram,RTX 3050 8G
Where
check
Command and steps
installed VSA build and rust then Luancher.bat
Output
@fiestorra on GitHub · 2026-12-01 22:36 UTC · original
Most likely nothing is wrong: the first start compiles on the CPU on purpose, and "GPU 0%" is what that looks like.
play-nvidia.ps1translates every shader of the title into the cache and makes the host pipelines earlier runs drew with, before the title starts - "minutes the first time and after a change of the layer, seconds otherwise" (its own-NoPrecompilehelp). That is CPU work: shader translation and driver pipeline compilation. A window that sits there with one core pinned and the card idle is the expected shape of it.Three things tell the two cases apart:
pipelines known,<n> of <m>, andmade in <n> mscome from the precompile while it runs. If those are moving, it is compiling, not idling.-NoPrecompilestarts the title at once without it. If with that flag the card lights up and without it you wait, it was the precompile.3Dengine by default, and a D3D12 workload that is mostly compute shows underCompute_0(orCuda). Right-click the GPU graph, change the engine, and look there. The layer's own F3 panel shows frames and timings if the build isdiag.And to rule out one thing outright: the layer cannot silently run on the CPU here. The only path to WARP is
LEONIDA_D3D12_WARPset - which nothing sets by default - and thediagnosticsfeature. Otherwise the device is created on your 3050 or on Windows' default card. So "GPU 0%" is not the layer falling back to software.If it is still 0% after the world is in front of you, the log says which card it took -
tracing::info!lines about the adapter, andLEONIDA_ADAPTERnaming no hardware card is reported too. What would settle it here: the run with-Log, which writes%LOCALAPPDATA%\Leonida\logs\play-*.log, plus whether those precompile lines appeared at all.AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
@fiestorra on GitHub · 2026-12-01 22:37 UTC · original
A number for the CPU-bound phase, measured on the title's own archive (
leonida shaders, the step the launcher's precompile does first, without needing the game running):So on a fast 8-core this phase alone is over a minute of every core busy and the card untouched, and it writes ~1 GB. On a 12400F with fewer/faster-slower cores it is longer. The host pipeline creation (the driver compiling pipelines, which is what the
made in <n> mslines count) is on top of that and does need the title running.Not measured: the pipeline half, since it needs the game in front of me - so I am not going to say "your first start takes X". What is measured is the shader half, and that it is CPU-only by construction.
AI-generated cache removal: the 988.6 MB was written to a scratch
LEONIDA_CACHE_DIR, not to your real one.AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
@fiestorra on GitHub · 2026-12-01 23:18 UTC · original
Addendum to the number above: the job count is already at its best, so that phase has no knob to turn.
leonida.exe shaders "<title>\shaders.rpf"into an empty cache folder, 16 logical cores, 25,689 files written each time:The default is the fastest; halving it costs 15%, doubling it is 3% worse (oversubscribed). So the 1.2 minutes I quoted is the floor for this machine at this build, not a setting someone left wrong.
What is left in it: the translation itself, which is what #2788 (open-addressing unique table) moved by about 4% on this archive - the kind of gain that is real and small. The phase is CPU-bound by construction: a start that precompiles will show one core per worker and the card idle, and that is not a fault.
AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
@fiestorra on GitHub · 2026-12-01 23:32 UTC · original
And the cost is paid once: the same command into a cache that is already there takes a second, not a minute.
So the "CPU 100 %, GPU 0 %" of a first start is a one-time cost per cache, and it is why
play-nvidia.ps1says "minutes the first time and after a change of the layer, seconds otherwise". What makes it come back is not time but a change: a new build (the layer's hash is part of the cache), a switch that asks for another form of a program (the log names them:translated in a form asked for by name switch=..., 25 programs forLEONIDA_LDS_BOUNDS_EXEMPThere), or deleting%LOCALAPPDATA%\Leonida.AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.