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? ...
Published at
2026-01-25 16:06:03 UTCEvent JSON
{
"id": "ea1d82e478c5129a5ba21bf695d00e1d722fb0f15f3cefb9bc5e2163c6f3d3e4",
"pubkey": "b96234e524f2eb876a0308124da1e1cf0c42a02c1780cc5e6d2825b5b53d4161",
"created_at": 1769357163,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.gamedev.place/users/EricLasota/statuses/115956591035747310",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "Allow me to share a story of the worst thing in D3D12: Handling VRAM exhaustion.\n\nIf multiple programs are collectively using too much VRAM, Windows will start demoting VRAM to system memory, causing perf to catastrophically tank.\n\nFortunately, 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.\n\nHow are you supposed to actually detect demotion? ...",
"sig": "832839c19779068e7cca41fb44f29b4293b190b01c92d1722f5349c13b9a678eda346aad768216910d5fdb2ab2cd53106ad5562b494460cd18dca6d63c9bc46a"
}