tracking frequency is now a divisor of display period

This commit is contained in:
Patrick Nicolas
2025-01-30 08:58:31 +01:00
parent 06b5fd7e6c
commit 54c592e66a
3 changed files with 20 additions and 3 deletions
+2
View File
@@ -455,6 +455,8 @@ void scenes::stream::render(const XrFrameState & frame_state)
display_time_phase = frame_state.predictedDisplayTime % frame_state.predictedDisplayPeriod;
display_time_period = frame_state.predictedDisplayPeriod;
real_display_period = last_display_time ? frame_state.predictedDisplayTime - last_display_time : frame_state.predictedDisplayPeriod;
last_display_time = frame_state.predictedDisplayTime;
std::shared_lock lock(decoder_mutex);
if (decoders.empty() or not frame_state.shouldRender)