fix(dlss): NGX's own lines are logged when its Frame Gen query fails, and a cut sandbox note says so #3113

Merged
HumanBean merged 2 commits from HumanBean/Longshot:fix/ngx-fg-log into main 2026-12-03 20:43:04 +00:00
Owner

Summary

A player's RTX 3060 Ti has no DLSS on Windows, and the log they could send didn't say why. This doesn't fix that: it makes the next such log say more.

  • The launcher's log stops at the start-up screen. Its one NVIDIA line was DLSS Frame Gen (NGX): NGX did not say which device extensions it needs (0xbad00001). That answer is expected on an RTX 30 card, and NGX also gives it when it can't learn the GPU's architecture. The query now takes the log's callback, and a failed query writes NGX's own lines under it, as a failed start does since #3086.
  • The builder's sandbox lines are cut at 6,144 bytes without saying so, so a missing grant looked like one the builder never made. A cut note now ends with how many lines were left out.

See #3085.

Read first: dlss_fg_device_extensions in gpu/vk/vk_dlss.cpp, note_lines in sandbox_windows.rs.

Testing

Tested: Linux, game-free only. Not run in the game or on Windows.

  • tests/test_dlss_fg_requirements_log.py (new, g++ and clang++): fails without the fix, passes with it.
  • a_cut_note_says_it_was_cut (new): fails without the fix, passes with it.
  • test_doc_anchors.py, test_switch_table.py: pass on the rebased head.
  • vk_dlss.cpp: llvm-mingw -fsyntax-only with LONGSHOT_NGX, against the Linux NGX SDK's headers: no errors.

Still to test:

  • This PC: cargo test -p build-core and clippy on the rebased head, expecting all to pass (queue)
  • Windows, an RTX 20 or 30: expect the Frame Gen line, with ngx: lines under it if NGX says any that early (by hand)
  • Windows, an RTX 40 or newer: expect no new lines, DLSS and Frame Generation as before (by hand or Test Farm)

Measurements

Nothing to measure: log lines at startup only.

Risks

  • It isn't known whether NGX says anything through the callback this early; then the log is as before.
  • An RTX 30 or older card, where the answer is normal, now gets NGX's lines under it too.
  • A revert is enough.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says. (No: opened with --force on request)
  • mise run test passes (any failure that also fails on main is named). (Only the checks above ran)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Syntax check of the renderer file for Windows only)
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary A player's RTX 3060 Ti has no DLSS on Windows, and the log they could send didn't say why. This doesn't fix that: it makes the next such log say more. - The launcher's log stops at the start-up screen. Its one NVIDIA line was `DLSS Frame Gen (NGX): NGX did not say which device extensions it needs (0xbad00001)`. That answer is expected on an RTX 30 card, and NGX also gives it when it can't learn the GPU's architecture. The query now takes the log's callback, and a failed query writes NGX's own lines under it, as a failed start does since #3086. - The builder's sandbox lines are cut at 6,144 bytes without saying so, so a missing grant looked like one the builder never made. A cut note now ends with how many lines were left out. See #3085. Read first: `dlss_fg_device_extensions` in `gpu/vk/vk_dlss.cpp`, `note_lines` in `sandbox_windows.rs`. ## Testing **Tested:** Linux, game-free only. **Not run in the game or on Windows.** - `tests/test_dlss_fg_requirements_log.py` (new, g++ and clang++): fails without the fix, passes with it. - `a_cut_note_says_it_was_cut` (new): fails without the fix, passes with it. - `test_doc_anchors.py`, `test_switch_table.py`: pass on the rebased head. - `vk_dlss.cpp`: llvm-mingw `-fsyntax-only` with `LONGSHOT_NGX`, against the Linux NGX SDK's headers: no errors. **Still to test:** - This PC: `cargo test -p build-core` and clippy on the rebased head, expecting all to pass (queue) - Windows, an RTX 20 or 30: expect the Frame Gen line, with `ngx:` lines under it if NGX says any that early (by hand) - Windows, an RTX 40 or newer: expect no new lines, DLSS and Frame Generation as before (by hand or Test Farm) ## Measurements Nothing to measure: log lines at startup only. ## Risks - It isn't known whether NGX says anything through the callback this early; then the log is as before. - An RTX 30 or older card, where the answer is normal, now gets NGX's lines under it too. - A revert is enough. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [ ] Tested on my own PC, in the game for a change the game runs, as Testing says. (No: opened with `--force` on request) - [ ] `mise run test` passes (any failure that also fails on `main` is named). (Only the checks above ran) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Syntax check of the renderer file for Windows only) - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
tests/test_dlss_fg_requirements_log.py: the Frame Generation requirements query is given the log's callback, and a failed
query writes NGX's lines under it. sandbox_windows.rs a_cut_note_says_it_was_cut: the builder's lines cut at 6,144 bytes
end with a line saying how many were left out (the cut moved, unchanged, into note_lines). Both fail here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(dlss): NGX's own lines are logged when it does not say what DLSS Frame Gen needs; a cut sandbox note says so
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
PR description / Title and description (pull_request_target) Failing after 6s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 18s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m37s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 11m23s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 14m14s
CI / Website build and checks (pull_request) Failing after 1m12s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m23s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 51m25s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m6s
8d53640ac9
A player's RTX 3060 Ti had no DLSS in the Windows sandbox, and its launcher's log (which stops at the start-up screen)
held one NGX answer: 'NGX did not say which device extensions it needs (0xbad00001)'. In NVIDIA's NGX core 0xbad00001 is
both 'not on this GPU' and NGXCheckArchitectureSupport failing to learn the GPU's architecture through NvAPI ('unsupported
hw detected'); the line could not tell them apart. The Frame Generation requirements query is now given the log's
callback, and a failed query writes NGX's lines under it (ngx_log_failed), as a failed start does since #3086.

The builder's sandbox lines cut at 6,144 bytes now end with a line saying how many were left out, so a grant missing
from a player's log is not read as one the builder did not make.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member

Possibly related, for context:

  • PR #3110 fix(sandbox): Windows add-ons: only a layer's DLL is opened to the game, added layers load, and false alarms leave the log — Overlapping edit to sandbox_windows.rs note_lines and sandbox diagnostics
Possibly related, for context: - PR #3110 fix(sandbox): Windows add-ons: only a layer's DLL is opened to the game, added layers load, and false alarms leave the log — Overlapping edit to sandbox_windows.rs note_lines and sandbox diagnostics
HumanBean changed title from WIP: fix(dlss): NGX's own lines are logged when its Frame Gen query fails, and a cut sandbox note says so to fix(dlss): NGX's own lines are logged when its Frame Gen query fails, and a cut sandbox note says so 2026-12-03 20:42:59 +00:00
HumanBean deleted branch fix/ngx-fg-log 2026-12-03 20:43:04 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!3113
No description provided.