Allow disabling waiting for latency waitable object
This PR allows you to skip the frame latency waitable mechanism used for the DX12 backend by adding a new option to Dx12BackendOptions. The options now also carry over to the DX12 Surface, and a waitable object is only obtained when use_latency_waitable_object == true. The swap chain still gets created with the DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT flag, because I don't think there are any downsides and it lets users still obtain a waitable object themselves.
Not sure if this is the best way to do this or the right place for this setting, so let me know what you think. Happy to also change the docs.
Unless I missed something, seems to be missing the part where
Nonedoesn't make a swapchain with waitable object support.Code looks pretty darn good otherwise :)
Yes, I thought that's the best way to deal with this. There's no documented downside to setting this flag, but with my (very limited) DX12 experience, that's not to say there are no side effects at all. So it might be better to at least give users an option to disable it.
Oh yes, very true, I wouldn't expect there to be any side effects for d3d12.
Looks good, some small nits, then g2g
Hey, just following up on this :)
Thanks for following up! Let's get this merged. I'll need to finish a few other things first but will look into this later today!
Boop :)
Sorry for the long pause - should be ready to merge now!
Rebased & fixed up. Good to merge once ci is green
actually, not yet. Needs a changelog entry, adding one