Device-removal diagnostics: TDR log, clearer DRED report, LARP_BYTE_VIEWS=0, LARP_SHADER_REPLACE=0, docs (part b of #77) #126
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!126
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-126"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@kadiratesdev on GitHub · 2026-12-05 19:17 UTC · original
kadiratesdev:pr/split-b-diagnostics→main· +209 −2 · 7 files · 6 commits · merged 2026-12-05 20:43 UTCThis is part (b) of the split @gamingwithhomie asked for on #77 (see the review there); #77 stays open for now. This PR is independent of the other two parts (a: Agility/d3d12.dll loader, c: stack copy and watchdog tools), which will follow as separate PRs after the smoke test and the stall-dump run. It is based on current
main(334be94).None of it changes default behaviour of a normal run, except two new log lines (the TDR line and, with
LARP_D3D12_DRED, the DRED-applied line) and the wording of the device-removal report.What is in it
TdrLevel,TdrDelay,TdrDdiDelayare read fromHKLM\SYSTEM\CurrentControlSet\Control\GraphicsDriverswhen the host device is made, with a warning for level 0 (a GPU hang freezes the PC) and 1 (blue screen). Ported from VIctory-NVIDIA 474f949c; the newtdrmodule has unit tests.LARP_D3D12_DRED,GetAutoBreadcrumbsOutputreturns DXGI_ERROR_UNSUPPORTED (0x887A0004). The report used to print that asno breadcrumbs (... 0x887A0004), which reads like the reason (it is not; the reason is the0x887A0005after it). It now says the data is off and namesLARP_D3D12_DRED=1.LARP_D3D12_DREDon, the log saysdevice-removed data on ...; if the runtime gave no settings interface it warns instead of staying silent.larp.exe nv-profile, which is already inmain).LARP_BYTE_VIEWS=0: every buffer view is made by element (CreateShaderResourceView) instead ofID3D12Device15::TryCreateShaderResourceViewbyte-offset views. Off by default.LARP_SHADER_REPLACE=0(oroff/none): no replacement shaders are read and every shader runs as translated. Before, the only way was to move the folder, and a missing folder stopslarp run. Default unchanged.LARP_D3D12_DRED) inenvironment-variables.md, and a bisect recipe underexit -2005270523introubleshooting-and-crashes.md(DRED first, then each switch alone).Dependencies
LARP_AGILITYis not mentioned anywhere in this PR; its docs row and recipe step come with (a).larp.exe nv-profile, which already exists onmain(apps/larp/src/nvprofile.rs).Testing
x86_64-pc-windows-msvc(cargo xwin build --release -p larp): builds, same 8 warning lines asmain.cargo test --release --workspaceunder Wine: everything passes except one test that fails the same way onmain:larp-game prompts::font::...the_host_font_outlines_every_label_character_within_its_advance(needs a host font Wine lacks).larp-gpugoes from 3 to 8 tests (the fivetdrtests).LARP_D3D12_DRED=1(shader heap set to 2048 MiB withnv-profile). The log showed the TDR line (all defaults), thedevice-removed data online and the byte-view line as expected, and no device removal up to when I last looked, so the "no list in flight" report text has not been seen in a real removal. It was written after the earlier DRED capture (empty breadcrumbs, no page fault).LARP_BYTE_VIEWS=0andLARP_SHADER_REPLACE=0are covered by compilation only. I have not run the game with either set.@copilot-pull-request-reviewer[bot] on GitHub · 2026-12-05 19:17 UTC · original · reviewed
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.