Skip to content

Commit

Permalink
OpenXR: Ensure display time is reasonable before obtaining views
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Dec 10, 2023
1 parent 2139d20 commit cfb662f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mods/vr/runtimes/OpenXR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ VRRuntime::Error OpenXR::update_poses(bool from_view_extensions, uint32_t frame_

const auto display_time = pipeline_state.frame_state.predictedDisplayTime + (XrDuration)(pipeline_state.frame_state.predictedDisplayPeriod * this->prediction_scale);

if (display_time == 0) {
if (display_time <= 1000) {
return VRRuntime::Error::SUCCESS;
}

Expand Down

0 comments on commit cfb662f

Please sign in to comment.