From: Mikko Rasa Date: Mon, 3 Oct 2016 13:57:35 +0000 (+0300) Subject: Set zero swap interval in the OpenVR combiner X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=eef7ce73069a71a4001442fc54010dc08e74ca1a;p=libs%2Fvr.git 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. --- 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); }