sensics / OSVR-RenderManager

Apache License 2.0
64 stars 45 forks source link

Extended mode timing for d3d11 #328

Closed russell-taylor closed 6 years ago

russell-taylor commented 7 years ago

Implements (and then re-implements in a better way) render timing info in D3D11 extended mode.

russell-taylor commented 7 years ago

Implements the suggestion recommended in https://github.com/sensics/OSVR-RenderManager/issues/240

rpavlik commented 7 years ago

Does this end up providing good performance, then, without needing a separate thread to watch for VSYNC events? The separate thread approach was implied to be required by the GDC 2015 talk, but I'm happy if there's another way that works well enough.

russell-taylor commented 7 years ago

I've only tested with the hdk2.0 and a gtx 980m but it seemed to give reliable estimates except that it sometimes had an extra frame time for the next sync. Was able to work around that. Not all of the fields in the structure were reliable but I found a set that worked.

russell-taylor commented 6 years ago

This is going to be included in the upcoming just-in-timewarp request, which continues on this branch. Closing this pull request because the new one will include it.