I posted this in another thread but I thought it needed a thread on its own.
When Windows power saving settings turn off the display my application stops releasing resources as they normally do. This means that if the user goes AFK and when the default 20 minutes has passed, all my GPU memory allocations starts to pile up. After a while ID3D11Device::CreateBuffer returns E_OUTOFMEMORY.
I'm not sure if it is the COM smart pointers (CComPtr<ID3D11Buffer>) that stop releasing, or if it happens further down in WDDM or gpu drivers.
As you can see in the screen-shot below: the program runs stable, then when windows turns off the display the GPU memory usage spikes to max, and on the CPU side, Commit Charge builds up, if it hits 100%, ID3D11Device::CreateBuffer returns E_OUTOFMEMORY.
Any help on how to alleviate or circumvent is much appreciated.