Sync predictions with display time
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user