Sync predictions with display time

This commit is contained in:
Patrick Nicolas
2024-09-03 23:34:23 +02:00
parent b0290c037a
commit 7eea3c2e7b
4 changed files with 25 additions and 6 deletions
+3
View File
@@ -353,6 +353,9 @@ void scenes::stream::render(const XrFrameState & frame_state)
if (exiting)
application::pop_scene();
display_time_phase = frame_state.predictedDisplayTime % frame_state.predictedDisplayPeriod;
display_time_period = frame_state.predictedDisplayPeriod;
std::shared_lock lock(decoder_mutex);
if (decoders.empty() or not frame_state.shouldRender)
{