mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Removing flicker from OpenVR mirror
This commit is contained in:
parent
d1583e8cbe
commit
8289c39a2a
2 changed files with 1 additions and 8 deletions
|
@ -32,6 +32,7 @@ protected:
|
|||
glm::mat4 _cullingProjection;
|
||||
glm::uvec2 _renderTargetSize;
|
||||
float _ipd { 0.064f };
|
||||
private:
|
||||
bool _enablePreview { false };
|
||||
bool _monoPreview { true };
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue