sensics / OSVR-RenderManager

Apache License 2.0
64 stars 46 forks source link

Sometimes incorrect GetRenderInfo() with some config files #85

Closed russell-taylor closed 8 years ago

russell-taylor commented 8 years ago

Jeremy reports: I'm occasionally getting osvrRenderManagerGetNumRenderInfo return 0 render infos with this config. Not all the time. osvr_server_config.zip

russell-taylor commented 8 years ago

When using RestartD3D example and letting it restart a number of times using an on-screen display, it eventually (different counts) gives an error inside GetRenderInfo() that seems impossible. Maybe stack trashing? Maybe related to the start-up issue with the server that happens on the Microsoft Surface?

russell-taylor commented 8 years ago

The start-up issue on the Surface had to do with logging failing and throwing an exception, so that was not related.

russell-taylor commented 8 years ago

Jeremy reports that this only happens with Asynchronous Time Warp enabled.

russell-taylor commented 8 years ago

The code has since been changed to ask the underlying DirectMode RenderManager for the render info, rather than the wrapped one. This should avoid the race condition we were seeing.