Join Nostr
2026-01-25 16:06:03 UTC

Eric Lasota on Nostr: Allow me to share a story of the worst thing in D3D12: Handling VRAM exhaustion. If ...

Allow me to share a story of the worst thing in D3D12: Handling VRAM exhaustion.

If multiple programs are collectively using too much VRAM, Windows will start demoting VRAM to system memory, causing perf to catastrophically tank.

Fortunately, DXGI provides QueryVideoMemoryInfo which gives you usage+budget info for your program. Unfortunately, THE BUDGET NUMBER IS FAKE AND DOESN'T WORK. You can stay under it and still get demoted.

How are you supposed to actually detect demotion? ...