mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 01:42:11 +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_Right, &vrTexture, &OPENVR_TEXTURE_BOUNDS_RIGHT);
|
||||
vr::VRCompositor()->PostPresentHandoff();
|
||||
_presentRate.increment();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue