From eef7ce73069a71a4001442fc54010dc08e74ca1a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 3 Oct 2016 16:57:35 +0300 Subject: [PATCH] Set zero swap interval in the OpenVR combiner Otherwise the swap_buffers from rendering the mirror view will interfere with submitting VR frames. The OpenVR library internally syncs to the HMD's vertical refresh. --- source/openvr/openvrcombiner.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/openvr/openvrcombiner.cpp b/source/openvr/openvrcombiner.cpp index fa5a8ac..20b485e 100644 --- a/source/openvr/openvrcombiner.cpp +++ b/source/openvr/openvrcombiner.cpp @@ -25,6 +25,7 @@ OpenVRCombiner::OpenVRCombiner(OpenVRSystem &d, GL::View &v): Frustum right_frustum = Private::get_projection(vr::Eye_Right); configure_eye_frustums(left_frustum, right_frustum); + view.get_context().set_swap_interval(0); set_mirroring(true); } -- 2.45.2