Skip to content

Commit

Permalink
Revive: Implement VsyncToNextVsync.
Browse files Browse the repository at this point in the history
Was already implemented in ReviveXR.
  • Loading branch information
CrossVR committed Mar 18, 2023
1 parent 6aeed58 commit 7b76813
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Revive/REV_CAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,8 @@ OVR_PUBLIC_FUNCTION(float) ovr_GetFloat(ovrSession session, const char* property

if (strcmp(propertyName, "IPD") == 0)
return vr::VRSystem()->GetFloatTrackedDeviceProperty(vr::k_unTrackedDeviceIndex_Hmd, vr::Prop_UserIpdMeters_Float);
else if (strcmp(propertyName, "VsyncToNextVsync") == 0)
return 1.0f / vr::VRSystem()->GetFloatTrackedDeviceProperty(vr::k_unTrackedDeviceIndex_Hmd, vr::Prop_DisplayFrequency_Float);

// Override defaults, we should always return a valid value for these
if (strcmp(propertyName, OVR_KEY_PLAYER_HEIGHT) == 0)
Expand Down

0 comments on commit 7b76813

Please sign in to comment.