From 372b0f10da2e6cd7c564f15d8769905744c0627c Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Wed, 17 Nov 2021 16:22:25 +0100 Subject: [PATCH] Revert "cameraview: remove glflush, reduce C3 CPU usage (#22949)" This reverts commit 33b1b940671b4c5472e3ec272d6b109087edf73d. --- selfdrive/test/test_onroad.py | 2 +- selfdrive/ui/qt/widgets/cameraview.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/test/test_onroad.py b/selfdrive/test/test_onroad.py index 86d9a9937991ca..f1aad012eff275 100755 --- a/selfdrive/test/test_onroad.py +++ b/selfdrive/test/test_onroad.py @@ -56,7 +56,7 @@ "./loggerd": 70.0, "selfdrive.controls.controlsd": 28.0, "./camerad": 31.0, - "./_ui": 21.0, + "./_ui": 30.2, "selfdrive.controls.plannerd": 11.7, "./_dmonitoringmodeld": 10.0, "selfdrive.locationd.paramsd": 5.0, diff --git a/selfdrive/ui/qt/widgets/cameraview.cc b/selfdrive/ui/qt/widgets/cameraview.cc index 0cc654e40d0a12..1daabd7d1ec784 100644 --- a/selfdrive/ui/qt/widgets/cameraview.cc +++ b/selfdrive/ui/qt/widgets/cameraview.cc @@ -307,6 +307,7 @@ void CameraViewWidget::vipcThread() { emit vipcThreadFrameReceived(buf); + glFlush(); } else { emit vipcThreadFrameReceived(buf); }