Disable OpenVR submit thread

This commit is contained in:
Brad Davis 2016-10-25 22:09:00 -07:00
parent 15ee56a50f
commit e7355e84f3
2 changed files with 2 additions and 1 deletions

View file

@ -625,6 +625,7 @@ void OpenVrDisplayPlugin::hmdPresent() {
vr::VRCompositor()->Submit(vr::Eye_Left, &vrTexture, &OPENVR_TEXTURE_BOUNDS_LEFT);
vr::VRCompositor()->Submit(vr::Eye_Right, &vrTexture, &OPENVR_TEXTURE_BOUNDS_RIGHT);
vr::VRCompositor()->PostPresentHandoff();
_presentRate.increment();
#endif
}

View file

@ -15,7 +15,7 @@
const float TARGET_RATE_OpenVr = 90.0f; // FIXME: get from sdk tracked device property? This number is vive-only.
#define OPENVR_THREADED_SUBMIT 1
#define OPENVR_THREADED_SUBMIT 0
#if OPENVR_THREADED_SUBMIT
namespace gl {