[GH #1054] A frozen desktop is not a device removal: TdrLevel=0 disables TDR and turns a slow frame into a hard freeze #1054
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T15:19:54Z.
A frozen desktop is not a device removal: check
TdrLevelbefore blaming the runtimePosting this because it changed the meaning of three "crashes" on our host, and because several
issue threads here describe exactly this symptom (#71, #59, #772, #965) without naming the setting.
Symptom
Running the world stage, the desktop stops responding. No bugcheck, no process exit, no
DXGI_ERROR_DEVICE_REMOVEDin the log, and a per-second resource guard stops logging too — the wholemachine is frozen until a hard reset. The last healthy numbers in our log were VRAM 6.9 GiB (well under
the card's 12 GiB), RAM 4.5 GiB, and
1366.6 ms/frame(0.73 fps) in the title's own window title.Cause
TdrLevel = 0disables Windows' timeout detection and recovery entirely. When a frame takes ~1.4 sand the GPU stops answering, nothing resets it: the desktop is frozen permanently rather than the
title being killed with a device-removed error. That is why no event reached the runtime or our guard.
The setting is a common "stop TDR from killing my slow frame" tweak, and it has the opposite effect:
slow frames are no longer killed, but a genuine hang takes the machine with it.
What to set instead
After changing it, the same workload reports its freeze as a device removal that the runtime can log
and classify, instead of freezing the host. On this machine the difference was between "the app
crashed, we have no idea why" and "the GPU timed out on a 1.37 s frame, here is the frame count".
Why it matters for reports here
Any report of "the world freezes the whole PC" should state these two values. Without them, a freeze
is indistinguishable from a runtime fault, and it will send people chasing shader or descriptor bugs
that are not there. Our own elimination attempts lost time to this.
Not measured: whether a machine that was never tweaked (
TdrLevelabsent) behaves differently; oursmay have been modified before we started.
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T15:22:20Z.
Confirmation from the same host after the change:
TdrLevel=3,TdrDelay=10.The workload that used to freeze the desktop (Emulate wave64, 1066–1281 ms/frame, 0.8 fps, world
rendering at 1600–1863 draws/frame) now runs to completion: 1962 presented frames, no freeze, no
device removal. Every frame stayed under the 10 s delay, so TDR never needed to fire — which means
10 s is already generous for a 1.3 s frame, and the value only needs raising if a single frame can
exceed it.
The important half is
TdrLevel=3. WithTdrLevel=0nothing recovers, and the symptom isindistinguishable from a crash: no bugcheck, no process exit, no event, and even our per-second
resource guard stops logging because the whole desktop is gone.
DXGI_ERROR_DEVICE_HUNG/0x887A0004/0x887A0006#1439