ui: don't log slow frame message in driverview (#20509)

* Don't log slow frame message in driverview mode

* white space
This commit is contained in:
Dean Lee
2021-03-28 04:38:48 +08:00
committed by GitHub
parent 364b083c59
commit 318fa3f50a
+1 -1
View File
@@ -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);
}