microsoft / D3D12TranslationLayer

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

Ensure pending signals are submitted when async polling query status #90

Closed jenatali closed 1 year ago

jenatali commented 1 year ago

I'm not entirely sure how this could happen, but I did see a hang occur due to a loop where an app was polling a query status, and we were trying to wait for a fence value that wasn't associated with a command list (i.e. no actual commands were recorded) but the fence hadn't been signaled yet, so the wait was never satisfied. I suppose an event query is has no commands associated with it, so this could happen there.