mirror of
https://github.com/lubosz/overte.git
synced 2025-05-28 12:36:23 +02:00
Disable OpenVR submit thread
This commit is contained in:
parent
15ee56a50f
commit
e7355e84f3
2 changed files with 2 additions and 1 deletions
|
@ -625,6 +625,7 @@ void OpenVrDisplayPlugin::hmdPresent() {
|
||||||
vr::VRCompositor()->Submit(vr::Eye_Left, &vrTexture, &OPENVR_TEXTURE_BOUNDS_LEFT);
|
vr::VRCompositor()->Submit(vr::Eye_Left, &vrTexture, &OPENVR_TEXTURE_BOUNDS_LEFT);
|
||||||
vr::VRCompositor()->Submit(vr::Eye_Right, &vrTexture, &OPENVR_TEXTURE_BOUNDS_RIGHT);
|
vr::VRCompositor()->Submit(vr::Eye_Right, &vrTexture, &OPENVR_TEXTURE_BOUNDS_RIGHT);
|
||||||
vr::VRCompositor()->PostPresentHandoff();
|
vr::VRCompositor()->PostPresentHandoff();
|
||||||
|
_presentRate.increment();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
const float TARGET_RATE_OpenVr = 90.0f; // FIXME: get from sdk tracked device property? This number is vive-only.
|
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
|
#if OPENVR_THREADED_SUBMIT
|
||||||
namespace gl {
|
namespace gl {
|
||||||
|
|
Loading…
Reference in a new issue