mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-30 19:33:49 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user