microsoft / D3D11On12

The Direct3D11-On-12 mapping layer
MIT License
274 stars 33 forks source link

Add more aggressive recovery from OOM when updating a subresource fails #38

Closed vdwtanner closed 2 years ago

vdwtanner commented 2 years ago

We can't be as aggressive about reclaiming memory when on the batched context's worker thread, but if we flush the batch and retry on the immediate context we can force a stall of the GPU to finish up some work and make more memory available.