fix(vk): Streamline writes sl.log where the sandboxed game can write #3062

Merged
HumanBean merged 1 commit from HumanBean/Longshot:fix/sandbox-streamline-log into main 2026-12-03 08:14:04 +00:00
Owner

Summary

With the sandbox on (Windows), Streamline's own log, sl.log, is most likely lost: Streamline is told to write it in the game folder, which the sandboxed game cannot write. It is the log you need when DLSS Frame Generation goes wrong.

Preferences::pathToLogsAndData is now the game folder's logs\ (diagnostics\logs\ in an organized folder), which the builder's file service lets the game write. The sandbox's file layer is patched into every loaded module, Streamline's included, so its writes there are served.

Read dlssg_rules.h (sl_logs_dir) and vk_dlssg.cpp (dlssg_load). Without the sandbox the log moves too.

Found by reading the code; no one has seen it on a Windows PC. See #3061 for the sandbox blocking DLSS's runtime; the two are independent.

Testing

Tested: nothing in the game, and vk_dlssg.cpp has not been compiled (it builds for Windows only). tests/dlssg_rules_test.cpp passes a syntax check; running it is waiting in the job queue.

Still to test:

  • Windows, NVIDIA RTX, sandbox on, a build with Streamline: play with DLSS Frame Generation, expecting logs\sl.log with Streamline's lines, and none on main (by hand)
  • The same with HOS_SANDBOX=0, expecting logs\sl.log and DLSS Frame Generation as before (by hand)

Measurements

Nothing to measure: it changes where a log file is written.

Risks

Anyone looking for sl.log at the top of the game folder now finds it in logs\; an old one stays where it was. Streamline also keeps its data in this folder. Reverting 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. (not run: Windows only)
  • mise run test passes (any failure that also fails on main is named). (not run yet)
  • 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. (written, not run yet)
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (not built)
  • 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 With the sandbox on (Windows), Streamline's own log, `sl.log`, is most likely lost: Streamline is told to write it in the game folder, which the sandboxed game cannot write. It is the log you need when DLSS Frame Generation goes wrong. `Preferences::pathToLogsAndData` is now the game folder's `logs\` (`diagnostics\logs\` in an organized folder), which the builder's file service lets the game write. The sandbox's file layer is patched into every loaded module, Streamline's included, so its writes there are served. Read `dlssg_rules.h` (`sl_logs_dir`) and `vk_dlssg.cpp` (`dlssg_load`). Without the sandbox the log moves too. Found by reading the code; **no one has seen it on a Windows PC.** See #3061 for the sandbox blocking DLSS's runtime; the two are independent. ## Testing **Tested:** nothing in the game, and `vk_dlssg.cpp` has **not been compiled** (it builds for Windows only). `tests/dlssg_rules_test.cpp` passes a syntax check; running it is waiting in the job queue. **Still to test:** - Windows, NVIDIA RTX, sandbox on, a build with Streamline: play with DLSS Frame Generation, expecting `logs\sl.log` with Streamline's lines, and none on `main` (by hand) - The same with `HOS_SANDBOX=0`, expecting `logs\sl.log` and DLSS Frame Generation as before (by hand) ## Measurements Nothing to measure: it changes where a log file is written. ## Risks Anyone looking for `sl.log` at the top of the game folder now finds it in `logs\`; an old one stays where it was. Streamline also keeps its data in this folder. Reverting 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. (not run: Windows only) - [ ] `mise run test` passes (any failure that also fails on `main` is named). (not run yet) - [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 - [ ] A fix: a game-free test that fails on `main` and passes here. (written, not run yet) - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (not built) - [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)
fix(vk): Streamline writes sl.log where the sandboxed game can write
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
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 17s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m21s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 14m57s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 12m57s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 12m57s
CI / Website build and checks (pull_request) Failing after 36s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Successful in 49m41s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m6s
d24e6be699
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Member

Possibly related, for context:

  • PR #2847 WIP: fix(sandbox): Windows: a confined game writes the diagnostic folders the real environment names, as on Linux, and no wider — Earlier Windows sandbox diagnostic-folder grants; closed without merge, later covered by another change.
  • PR #2748 feat(builder): DLSS FG through Streamline from its MIT headers, and its runtime for a profile that takes it — Merged Streamline DLSS Frame Generation implementation this log-path change supports.
Possibly related, for context: - PR #2847 WIP: fix(sandbox): Windows: a confined game writes the diagnostic folders the real environment names, as on Linux, and no wider — Earlier Windows sandbox diagnostic-folder grants; closed without merge, later covered by another change. - PR #2748 feat(builder): DLSS FG through Streamline from its MIT headers, and its runtime for a profile that takes it — Merged Streamline DLSS Frame Generation implementation this log-path change supports.
HumanBean changed title from WIP: fix(vk): Streamline writes sl.log where the sandboxed game can write to fix(vk): Streamline writes sl.log where the sandboxed game can write 2026-12-03 08:14:01 +00:00
HumanBean deleted branch fix/sandbox-streamline-log 2026-12-03 08:14:05 +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!3062
No description provided.