Isnt using GPU Only CPU RTX3050 #2914

Open
opened 2026-12-01 17:55:48 +00:00 by Moheiseni3D · 4 comments
Moheiseni3D commented 2026-12-01 17:55:48 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by Moheiseni3D on 2026-12-01T17:55:48Z.


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

> cmd /c G:\GTA6\mandy\d3d12\Get-NVIDIA-DLSS.cmd
NVIDIA DLSS v310.9.16 from github.com/NVIDIA/DLSS (about 60 MB):
  LICENSE.txt is there already
  lib/Windows_x86_64/x64/nvsdk_ngx_d.lib is there already
  lib/Windows_x86_64/rel/nvngx_dlss.dll is there already
  NVIDIA's licence for these: G:\GTA6\mandy\d3d12\nvidia-sdk\DLSS\LICENSE.txt
NVIDIA Streamline v2.14.16 from github.com/NVIDIA-RTX/Streamline (about 10 MB):
  the Streamline DLLs are there already
  nvngx_dlssg.dll is there already
  licences: G:\GTA6\mandy\d3d12\nvidia-sdk\Streamline\license.txt (Streamline) and NVIDIA's DLSS licence above (nvngx_dlssg.dll)

Done. The next start of scripts\play-nvidia.ps1 builds the layer with DLSS (about a minute) and uses it.


Press any key to continue . . . 


Exited with code 0.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6726975944 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2914). Originally posted by [Moheiseni3D](https://github.com/Moheiseni3D) on 2026-12-01T17:55:48Z. --- ### 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 ```text > cmd /c G:\GTA6\mandy\d3d12\Get-NVIDIA-DLSS.cmd NVIDIA DLSS v310.9.16 from github.com/NVIDIA/DLSS (about 60 MB): LICENSE.txt is there already lib/Windows_x86_64/x64/nvsdk_ngx_d.lib is there already lib/Windows_x86_64/rel/nvngx_dlss.dll is there already NVIDIA's licence for these: G:\GTA6\mandy\d3d12\nvidia-sdk\DLSS\LICENSE.txt NVIDIA Streamline v2.14.16 from github.com/NVIDIA-RTX/Streamline (about 10 MB): the Streamline DLLs are there already nvngx_dlssg.dll is there already licences: G:\GTA6\mandy\d3d12\nvidia-sdk\Streamline\license.txt (Streamline) and NVIDIA's DLSS licence above (nvngx_dlssg.dll) Done. The next start of scripts\play-nvidia.ps1 builds the layer with DLSS (about a minute) and uses it. Press any key to continue . . . Exited with code 0. ```
fiestorra commented 2026-12-01 22:36:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T22:36:27Z.


Most likely nothing is wrong: the first start compiles on the CPU on purpose, and "GPU 0%" is what that looks like.

play-nvidia.ps1 translates 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 -NoPrecompile help). 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:

  1. The launcher prints its progress: lines like pipelines known, <n> of <m>, and made in <n> ms come from the precompile while it runs. If those are moving, it is compiling, not idling.
  2. -NoPrecompile starts the title at once without it. If with that flag the card lights up and without it you wait, it was the precompile.
  3. Task Manager's 0% can be a lie for this kind of app: it reports the 3D engine by default, and a D3D12 workload that is mostly compute shows under Compute_0 (or Cuda). Right-click the GPU graph, change the engine, and look there. The layer's own F3 panel shows frames and timings if the build is diag.

And to rule out one thing outright: the layer cannot silently run on the CPU here. The only path to WARP is

// host.rs:1488
if cfg!(feature = "diagnostics") && crate::switch::on("LEONIDA_D3D12_WARP") {
  • it needs LEONIDA_D3D12_WARP set - which nothing sets by default - and the diagnostics feature. 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, and LEONIDA_ADAPTER naming 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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328088493 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2914#issuecomment-7328088493). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-01T22:36:27Z. --- **Most likely nothing is wrong: the first start compiles on the CPU on purpose, and "GPU 0%" is what that looks like.** **`play-nvidia.ps1` translates 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 `-NoPrecompile` help). **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:** 1. **The launcher prints its progress**: lines like `pipelines known`, `<n> of <m>`, and `made in <n> ms` come from the precompile while it runs. **If those are moving, it is compiling, not idling.** 2. **`-NoPrecompile`** starts the title at once without it. **If with that flag the card lights up and without it you wait, it was the precompile.** 3. **Task Manager's 0% can be a lie for this kind of app**: it reports the `3D` engine by default, and a D3D12 workload that is mostly compute shows under `Compute_0` (or `Cuda`). **Right-click the GPU graph, change the engine, and look there.** **The layer's own F3 panel shows frames and timings if the build is `diag`.** **And to rule out one thing outright: the layer cannot silently run on the CPU here.** The only path to WARP is ```rust // host.rs:1488 if cfg!(feature = "diagnostics") && crate::switch::on("LEONIDA_D3D12_WARP") { ``` - **it needs `LEONIDA_D3D12_WARP` set** - which nothing sets by default - **and the `diagnostics` feature**. 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, and `LEONIDA_ADAPTER` naming 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 commented 2026-12-01 22:37:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T22:37:58Z.


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):

LEONIDA_CACHE_DIR=<scratch>
leonida.exe shaders "…\GTA6.Xbox.v1.0.2.1-CYBERLEEK\shaders.rpf" --jobs 16

  1.2 min on a Ryzen 7 7800X3D (16 workers)
  25,689 files, 988.6 MB in the cache
  5 refused: "a descriptor read only as data"

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> ms lines 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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328122897 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2914#issuecomment-7328122897). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-01T22:37:58Z. --- **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): ``` LEONIDA_CACHE_DIR=<scratch> leonida.exe shaders "…\GTA6.Xbox.v1.0.2.1-CYBERLEEK\shaders.rpf" --jobs 16 1.2 min on a Ryzen 7 7800X3D (16 workers) 25,689 files, 988.6 MB in the cache 5 refused: "a descriptor read only as data" ``` **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> ms` lines 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 commented 2026-12-01 23:18:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T23:18:36Z.


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:

--jobs 8     77.6 s
--jobs 16    67.6 s      (the default: every logical core)
--jobs 32    69.9 s

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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7329186569 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2914#issuecomment-7329186569). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-01T23:18:36Z. --- **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: ``` --jobs 8 77.6 s --jobs 16 67.6 s (the default: every logical core) --jobs 32 69.9 s ``` **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 commented 2026-12-01 23:32:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T23:32:56Z.


And the cost is paid once: the same command into a cache that is already there takes a second, not a minute.

leonida.exe shaders "<title>\shaders.rpf"    (default jobs, 16 logical cores)

first run, empty cache     64.3 s   25,689 files written
second run, same cache      0.9 s   25,689 files, nothing translated
third run                   0.9 s

So the "CPU 100 %, GPU 0 %" of a first start is a one-time cost per cache, and it is why play-nvidia.ps1 says "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 for LEONIDA_LDS_BOUNDS_EXEMPT here), or deleting %LOCALAPPDATA%\Leonida.

AI-assisted: yes - DeepSeek v4.1 (flash).

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7329479968 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2914#issuecomment-7329479968). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-01T23:32:56Z. --- **And the cost is paid once**: the same command into a cache that is already there takes a second, not a minute. ``` leonida.exe shaders "<title>\shaders.rpf" (default jobs, 16 logical cores) first run, empty cache 64.3 s 25,689 files written second run, same cache 0.9 s 25,689 files, nothing translated third run 0.9 s ``` **So the "CPU 100 %, GPU 0 %" of a first start is a one-time cost per cache**, and it is why `play-nvidia.ps1` says "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 for `LEONIDA_LDS_BOUNDS_EXEMPT` here), or deleting `%LOCALAPPDATA%\Leonida`. **AI-assisted:** yes - DeepSeek v4.1 (flash). Written with an AI assistant.
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#2914
No description provided.