From 35f63336e9126aa72315b7ed1310736c732aa4ab Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Sun, 28 Mar 2021 04:38:48 +0800 Subject: [PATCH] ui: don't log slow frame message in driverview (#20509) * Don't log slow frame message in driverview mode * white space old-commit-hash: 318fa3f50a59d72684b844fd61e97b29556f8699 --- selfdrive/ui/qt/home.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/home.cc b/selfdrive/ui/qt/home.cc index 2dc7b9fc6..fead4ae1b 100644 --- a/selfdrive/ui/qt/home.cc +++ b/selfdrive/ui/qt/home.cc @@ -321,7 +321,7 @@ void GLWindow::paintGL() { double cur_draw_t = millis_since_boot(); double dt = cur_draw_t - prev_draw_t; - if (dt > 66 && onroad){ + if (dt > 66 && onroad && !ui_state.scene.driver_view) { // warn on sub 15fps LOGW("slow frame(%llu) time: %.2f", ui_state.sm->frame, dt); }