DLSS not working #2762

Open
opened 2026-11-30 16:15:47 +00:00 by PatrykKu · 4 comments
PatrykKu commented 2026-11-30 16:15:47 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by PatrykKu on 2026-11-30T16:15:47Z.


What happens

I have downloaded DLSS SDKs, but everytime i chose DLSS in F1 settings and restart, it reverts to stretch. As i said i have the SDKs and selected DLSS in options

Commit

30.11.2026

System

Windows 11, 9600X, 32GB, 3060 Ti

Where

A tool run by hand (tools/, scripts/)

Command and steps

Launcher.bat, compiled myself, happens every time

Output

No lines about it
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6700809908 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2762). Originally posted by [PatrykKu](https://github.com/PatrykKu) on 2026-11-30T16:15:47Z. --- ### What happens I have downloaded DLSS SDKs, but everytime i chose DLSS in F1 settings and restart, it reverts to stretch. As i said i have the SDKs and selected DLSS in options ### Commit 30.11.2026 ### System Windows 11, 9600X, 32GB, 3060 Ti ### Where A tool run by hand (tools/, scripts/) ### Command and steps Launcher.bat, compiled myself, happens every time ### Output ```text No lines about it ```
somono commented 2026-12-01 14:23:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by somono on 2026-12-01T14:23:11Z.


DLSS cannot coexist with - SeriesX ,maybe its feature

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7314165576 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2762#issuecomment-7314165576). Originally posted by [somono](https://github.com/somono) on 2026-12-01T14:23:11Z. --- DLSS cannot coexist with - SeriesX ,maybe its feature
fiestorra commented 2026-12-01 22:28:37 +00:00 (Migrated from github.com)
Author
Contributor

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


It reverts because the DLSS SDK is not starting, and the layer falls back to stretch without printing anything - the fallback is by design (dlss.rs:615-616: "DLSS only where it can be ... falls back to the stretch"), and the one line that says why goes to the tracing log, not to the window. That is why you have "No lines about it".

Measured today on an RTX 4090, driver 621.24 (32.0.16.2124), DLSS SDK v310.9.16 fetched with Get-NVIDIA-DLSS.cmd and the layer built with scripts\build-nvidia.ps1:

cargo test -p leonida-gpu --features dlss -- --ignored dlss_starts --nocapture
  DLSS available: false

The reason (added in a scratch build, since the test does not print it):

DLSS did not start: result 0xbad00001

0xbad00001 is NVSDK_NGX_Result_FAIL_FeatureNotSupported (from NVIDIA's include/nvsdk_ngx_defs.h: Fail | 1; FeatureNotFound is Fail | 4, which I first misread it as).

The thing that moved it, and the first thing to try on your machine:

nvngx.dll is not in System32 here - the driver keeps it in its store (C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_*\nvngx.dll, 30.0.14.9516), and a process does not find it there. With it copied beside the executable:

nothing                                  0xbad00001  FeatureNotSupported
the driver store folder on PATH          0xbad00001  (no difference)
nvngx.dll beside the binary              0xbad00002  PlatformError

PATH is not enough; it has to be next to the leonida.exe you launch:

Copy-Item 'C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_*\nvngx.dll' '<folder with leonida.exe>' -Force

Be warned that on this machine it still does not start: with the loader in place the error becomes 0xbad00002 (FAIL_PlatformError), which is the driver's NGX layer refusing, and it stays there with the feature DLL from another generation too (v3.5.10 tried). So the loader is necessary and probably not sufficient - but if your card/driver combination differs from mine, it is the step that changes something, and the code you get tells which half it is. Get-NVIDIA-DLSS.cmd cannot fetch it: NVIDIA's DLSS repository at that tag carries nvngx_dlss.dll, nvngx_dlssd.dll and nvngx_dlssg.dll, and no loader.

How to see the code on your side: the dlss_starts_on_this_card test is #[ignore]d; run it as above with LEONIDA_DLSS_DIR pointing at the folder with nvngx_dlss.dll. If it prints false and nothing else, you are hitting the branch that does not print - the one improvement I would make and did not: that branch should print its result in test builds the way the "not available" branch already does.

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

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7327909924 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2762#issuecomment-7327909924). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-01T22:28:37Z. --- **It reverts because the DLSS SDK is not starting, and the layer falls back to stretch without printing anything** - the fallback is by design (`dlss.rs:615-616`: "DLSS only where it can be ... falls back to the stretch"), and the one line that says why goes to the tracing log, not to the window. **That is why you have "No lines about it".** **Measured today on an RTX 4090, driver 621.24 (32.0.16.2124), DLSS SDK v310.9.16 fetched with `Get-NVIDIA-DLSS.cmd` and the layer built with `scripts\build-nvidia.ps1`:** ``` cargo test -p leonida-gpu --features dlss -- --ignored dlss_starts --nocapture DLSS available: false ``` **The reason (added in a scratch build, since the test does not print it):** ``` DLSS did not start: result 0xbad00001 ``` **`0xbad00001` is `NVSDK_NGX_Result_FAIL_FeatureNotSupported`** (from NVIDIA's `include/nvsdk_ngx_defs.h`: `Fail | 1`; `FeatureNotFound` is `Fail | 4`, which I first misread it as). **The thing that moved it, and the first thing to try on your machine:** **`nvngx.dll` is not in `System32` here - the driver keeps it in its store** (`C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_*\nvngx.dll`, `30.0.14.9516`), **and a process does not find it there.** With it copied **beside the executable**: ``` nothing 0xbad00001 FeatureNotSupported the driver store folder on PATH 0xbad00001 (no difference) nvngx.dll beside the binary 0xbad00002 PlatformError ``` **`PATH` is not enough; it has to be next to the `leonida.exe` you launch:** ```powershell Copy-Item 'C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_*\nvngx.dll' '<folder with leonida.exe>' -Force ``` **Be warned that on this machine it still does not start**: with the loader in place the error becomes `0xbad00002` (`FAIL_PlatformError`), which is the driver's NGX layer refusing, and it stays there with the feature DLL from another generation too (v3.5.10 tried). **So the loader is necessary and probably not sufficient** - but if your card/driver combination differs from mine, it is the step that changes something, and the code you get tells which half it is. **`Get-NVIDIA-DLSS.cmd` cannot fetch it**: NVIDIA's DLSS repository at that tag carries `nvngx_dlss.dll`, `nvngx_dlssd.dll` and `nvngx_dlssg.dll`, and no loader. **How to see the code on your side**: the `dlss_starts_on_this_card` test is `#[ignore]`d; run it as above with `LEONIDA_DLSS_DIR` pointing at the folder with `nvngx_dlss.dll`. If it prints `false` and nothing else, you are hitting the branch that does not print - **the one improvement I would make and did not**: that branch should print its result in test builds the way the "not available" branch already does. **AI-assisted:** yes - DeepSeek v4.1 (flash). Written with an AI assistant.
fiestorra commented 2026-12-01 22:42:43 +00:00 (Migrated from github.com)
Author
Contributor

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


Correction to what I wrote above: my numbers came from an AMD card, not from an NVIDIA one, and DLSS on this 4090 does start.

This machine has two adapters - a Radeon iGPU (0x1002, the 7800X3D's) and an RTX 4090 (0x10de) - and D3D12CreateDevice(None, ...) makes the device on the Radeon. The test I was quoting did exactly that, so DLSS available: false and the 0xbad00001 behind it were an AMD card correctly saying it cannot run DLSS.

With the test asking the NVIDIA card instead (DXGI enumeration, first NVIDIA adapter; PR #2993):

cargo test -p leonida-gpu --features dlss -- --ignored dlss_starts --nocapture
  the card: NVIDIA GeForce RTX 4090 (0x10de)
  DLSS available: true

So on an RTX 4090 with driver 621.24 and DLSS v310.9.16, with nothing beside the executable, DLSS starts. The nvngx.dll step I described above is not needed here, and I have no measurement saying it is needed anywhere - it changed a code on the iGPU, where DLSS cannot run at all.

What still looks true and what is now suspect:

  • the setting is not evidence: the launcher prints DLSS and falls back to stretch silently. That is why your DLSS reverts, and it is the thing to chase on your machine.
  • but the cause is more likely "the wrong card" than "the SDK", and that is testable in one line: check which adapter the layer took, and name yours with -Adapter <part of its name> (LEONIDA_ADAPTER). On a machine with an integrated chip, Windows' default can be the chip, and DLSS cannot start on it - the settings would then revert exactly as you describe.

Sorry for the detour: I gave you a diagnosis measured on a card you do not have.

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

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328228705 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2762#issuecomment-7328228705). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-01T22:42:43Z. --- **Correction to what I wrote above: my numbers came from an AMD card, not from an NVIDIA one, and DLSS on this 4090 does start.** **This machine has two adapters** - a Radeon iGPU (`0x1002`, the 7800X3D's) and an RTX 4090 (`0x10de`) - **and `D3D12CreateDevice(None, ...)` makes the device on the Radeon.** **The test I was quoting did exactly that**, so `DLSS available: false` and the `0xbad00001` behind it were **an AMD card correctly saying it cannot run DLSS.** **With the test asking the NVIDIA card instead** (DXGI enumeration, first NVIDIA adapter; PR #2993): ``` cargo test -p leonida-gpu --features dlss -- --ignored dlss_starts --nocapture the card: NVIDIA GeForce RTX 4090 (0x10de) DLSS available: true ``` **So on an RTX 4090 with driver 621.24 and DLSS v310.9.16, with nothing beside the executable, DLSS starts.** **The `nvngx.dll` step I described above is not needed here, and I have no measurement saying it is needed anywhere** - it changed a code on the iGPU, where DLSS cannot run at all. **What still looks true and what is now suspect:** - **the setting is not evidence**: the launcher prints DLSS and falls back to stretch silently. **That is why your DLSS reverts, and it is the thing to chase on your machine.** - **but the cause is more likely "the wrong card" than "the SDK"**, and that is testable in one line: **check which adapter the layer took, and name yours with `-Adapter <part of its name>`** (`LEONIDA_ADAPTER`). **On a machine with an integrated chip, Windows' default can be the chip**, and DLSS cannot start on it - the settings would then revert exactly as you describe. **Sorry for the detour: I gave you a diagnosis measured on a card you do not have.** **AI-assisted:** yes - DeepSeek v4.1 (flash). Written with an AI assistant.
MoonEyes commented 2026-12-02 21:28:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T21:28:20Z.


Two open pull requests touch this: #2989 makes the DLSS start test print why the SDK did not start, and #3141 logs which card answered when a PC has more than one GPU. Neither is merged yet. AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7359327816 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2762#issuecomment-7359327816). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T21:28:20Z. --- Two open pull requests touch this: #2989 makes the DLSS start test print why the SDK did not start, and #3141 logs which card answered when a PC has more than one GPU. Neither is merged yet. AI-assisted (Claude Code).
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#2762
No description provided.