From 4514426d00ef64a58b5ee47b22b589a91dac316f Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 2 Mar 2023 20:57:57 -0800 Subject: [PATCH] revert draw on same frame --- selfdrive/ui/qt/widgets/cameraview.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selfdrive/ui/qt/widgets/cameraview.cc b/selfdrive/ui/qt/widgets/cameraview.cc index 5c288c5eca..8c7a7072e2 100644 --- a/selfdrive/ui/qt/widgets/cameraview.cc +++ b/selfdrive/ui/qt/widgets/cameraview.cc @@ -244,9 +244,9 @@ void CameraWidget::paintGL() { int frame_idx = frames.size() - 1; // Always draw latest frame until sync logic is more stable - for (frame_idx = 0; frame_idx < frames.size() - 1; frame_idx++) { - if (frames[frame_idx].first == draw_frame_id) break; - } + // for (frame_idx = 0; frame_idx < frames.size() - 1; frame_idx++) { + // if (frames[frame_idx].first == draw_frame_id) break; + // } // Log duplicate/dropped frames if (frames[frame_idx].first == prev_frame_id) {