Fix pacer being updated every frame

This commit is contained in:
Patrick Nicolas
2025-02-17 18:28:14 +01:00
parent c4cc16cd3f
commit 4238c9ad50
+1 -1
View File
@@ -140,7 +140,7 @@ void wivrn_pacer::on_feedback(const wivrn::from_headset::feedback & feedback, co
if (feedback.stream_index == 0)
{
if (feedback.stream_index % 100 == 0)
if (feedback.frame_index % 100 == 0)
{
std::unique_lock lock(compute_mutex);
std::swap(frame_times, frame_times_compute);