mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 13:42:38 +02:00
openvr: predict 3 frames into the future
Becasue I revered the latency fix in the GLEscrow queue. *sigh*
This commit is contained in:
parent
73725106f0
commit
88c4e54cff
1 changed files with 2 additions and 2 deletions
|
@ -122,8 +122,8 @@ void OpenVrDisplayPlugin::updateHeadPose(uint32_t frameIndex) {
|
|||
float vsyncToPhotons = _system->GetFloatTrackedDeviceProperty(vr::k_unTrackedDeviceIndex_Hmd, vr::Prop_SecondsFromVsyncToPhotons_Float);
|
||||
|
||||
#if THREADED_PRESENT
|
||||
// 2 frames of prediction + vsyncToPhotons = 33ms total
|
||||
const float NUM_PREDICTION_FRAMES = 2.0f;
|
||||
// 3 frames of prediction + vsyncToPhotons = 44ms total
|
||||
const float NUM_PREDICTION_FRAMES = 3.0f;
|
||||
float predictedSecondsFromNow = NUM_PREDICTION_FRAMES * frameDuration + vsyncToPhotons;
|
||||
#else
|
||||
float predictedSecondsFromNow = frameDuration + vsyncToPhotons;
|
||||
|
|
Loading…
Reference in a new issue