Removing flicker from OpenVR mirror

This commit is contained in:
Brad Davis 2016-02-17 14:48:24 -08:00
parent d1583e8cbe
commit 8289c39a2a
2 changed files with 1 additions and 8 deletions

View file

@ -32,6 +32,7 @@ protected:
glm::mat4 _cullingProjection;
glm::uvec2 _renderTargetSize;
float _ipd { 0.064f };
private:
bool _enablePreview { false };
bool _monoPreview { true };
};

View file

@ -88,10 +88,6 @@ void OpenVrDisplayPlugin::customizeContext() {
glGetError();
});
HmdDisplayPlugin::customizeContext();
enableVsync(false);
// Only enable mirroring if we know vsync is disabled
_enablePreview = !isVsyncEnabled();
}
void OpenVrDisplayPlugin::resetSensors() {
@ -118,10 +114,6 @@ void OpenVrDisplayPlugin::internalPresent() {
glFinish();
if (_enablePreview) {
swapBuffers();
}
_compositor->WaitGetPoses(_presentThreadTrackedDevicePose, vr::k_unMaxTrackedDeviceCount, nullptr, 0);
{