docs: clarify enabling DRED before launch #500

Open
github-bot wants to merge 1 commit from github-bot/gh-500 into main AGit
Owner

@⁠vanya890 on GitHub · 2026-12-06 01:35 UTC · original
vanya890:docs/dred-env-setup-20261206 → main · +1 −1 · 1 files · 1 commits · open

Summary

  • Explain where to set LARP_D3D12_DRED=1 when diagnosing a device removal.
  • Show the CMD sequence from the package folder and the equivalent PowerShell syntax.
  • Clarify that the variable must be set in the same shell that launches series-s.cmd.

Validation

  • git diff --check passes.
  • Documentation-only change; no runtime code changed.
**@⁠vanya890** on GitHub · 2026-12-06 01:35 UTC · [original](https://github.com/gamingwithhomie/larp/pull/500) `vanya890:docs/dred-env-setup-20261206` → `main` · +1 −1 · 1 files · 1 commits · open ## Summary - Explain where to set `LARP_D3D12_DRED=1` when diagnosing a device removal. - Show the CMD sequence from the package folder and the equivalent PowerShell syntax. - Clarify that the variable must be set in the same shell that launches `series-s.cmd`. ## Validation - `git diff --check` passes. - Documentation-only change; no runtime code changed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 01:46:17 +00:00
Author
Owner

@⁠vanya890 on GitHub · 2026-12-06 01:37 UTC · original

FYI: I opened #502 for a separate, one-line FAQ cross-link to the detailed troubleshooting section this PR updates. It does not duplicate the shell instructions here; it only makes the existing DRED procedure easier to find from the FAQ's NVIDIA crash guidance. Both changes should remain independent and merge cleanly.

**@⁠vanya890** on GitHub · 2026-12-06 01:37 UTC · [original](https://github.com/gamingwithhomie/larp/pull/500#issuecomment-7449323380) FYI: I opened #502 for a separate, one-line FAQ cross-link to the detailed troubleshooting section this PR updates. It does not duplicate the shell instructions here; it only makes the existing DRED procedure easier to find from the FAQ's NVIDIA crash guidance. Both changes should remain independent and merge cleanly.
Author
Owner

@⁠christopear on GitHub · 2026-12-06 02:00 UTC · original · edited 2026-12-06 02:24 UTC

Correction for the v1.1.6 Windows FULL package. I checked the shipped launcher after writing the notes below. Both Series scripts call bin/launch.ps1, which removes every inherited LARP_* variable before starting the executable. I ran that PowerShell script with a stand-in executable and confirmed that a parent-shell LARP_D3D12_DRED=1 was absent in the child. Setting it in the same terminal is therefore insufficient with this package.

For a one-off diagnostic run with this launcher, set $env:LARP_D3D12_DRED = '1' in a temporary copy of the launch script after its environment reset and before Start-Process. Keep the copy beside the original so relative paths still resolve, invoke that copy with the usual Series arguments, and return to the original launcher afterwards. The shell advice below applies to launches that preserve the variable.

Two small additions would help people verify the setting and undo it between runs. I checked the paths in crates/larp-gpu/src/host.rs on 9f8bb9e5.

  • After launch, look for device-removed data on in the log. If it says this D3D12 gave no settings for it, the variable reached the process but the runtime did not expose the requested interface. That distinction is particularly useful when troubleshooting through a translation layer.
  • To disable it for the next launch, use set "LARP_D3D12_DRED=" in CMD or Remove-Item Env:LARP_D3D12_DRED -ErrorAction SilentlyContinue in PowerShell. Setting it to 0 still requests DRED because dred_on() checks presence and caches the result.

I'd also qualify the promise that the log will name the faulting address. Even with the setting inherited, the available diagnostic data depends on the runtime and failure.

**@⁠christopear** on GitHub · 2026-12-06 02:00 UTC · [original](https://github.com/gamingwithhomie/larp/pull/500#issuecomment-7449609140) · edited 2026-12-06 02:24 UTC **Correction for the v1.1.6 Windows FULL package.** I checked the shipped launcher after writing the notes below. Both Series scripts call `bin/launch.ps1`, which removes every inherited `LARP_*` variable before starting the executable. I ran that PowerShell script with a stand-in executable and confirmed that a parent-shell `LARP_D3D12_DRED=1` was absent in the child. Setting it in the same terminal is therefore insufficient with this package. For a one-off diagnostic run with this launcher, set `$env:LARP_D3D12_DRED = '1'` in a temporary copy of the launch script **after** its environment reset and before `Start-Process`. Keep the copy beside the original so relative paths still resolve, invoke that copy with the usual Series arguments, and return to the original launcher afterwards. The shell advice below applies to launches that preserve the variable. Two small additions would help people verify the setting and undo it between runs. I checked the paths in `crates/larp-gpu/src/host.rs` on `9f8bb9e5`. * After launch, look for `device-removed data on` in the log. If it says `this D3D12 gave no settings for it`, the variable reached the process but the runtime did not expose the requested interface. That distinction is particularly useful when troubleshooting through a translation layer. * To disable it for the next launch, use `set "LARP_D3D12_DRED="` in CMD or `Remove-Item Env:LARP_D3D12_DRED -ErrorAction SilentlyContinue` in PowerShell. Setting it to `0` still requests DRED because `dred_on()` checks presence and caches the result. I'd also qualify the promise that the log will name the faulting address. Even with the setting inherited, the available diagnostic data depends on the runtime and failure.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/500/head:github-bot/gh-500'
git switch 'github-bot/gh-500'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-500'
git switch 'github-bot/gh-500'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-500'
git switch 'github-bot/gh-500'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-500'
git switch 'main'
git merge --squash 'github-bot/gh-500'
git switch 'main'
git merge --ff-only 'github-bot/gh-500'
git switch 'main'
git merge 'github-bot/gh-500'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.