microsoft / D3D12TranslationLayer

A library containing utilities for mapping higher-level graphics work to D3D12
MIT License
327 stars 47 forks source link

Infer when memory was freed during ResourceAllocationFallback #55

Closed vdwtanner closed 2 years ago

vdwtanner commented 2 years ago

Turns out that WaitForFenceValueInternal has a path that ends up calling TrimDeletedObjects too. This caused ResourceAllocationFallback to return false more often than not since when it finally calls TrimDeletedObjects the second time TrimDeletedObjects had already been called after waiting for the sync point and this new call returns false. This resulted in OOM errors.