figments: mainloop: 30fps should be the slowest frame, actually

This commit is contained in:
Torrie Fischer 2023-12-11 07:49:40 +01:00
parent 7970192c1a
commit ddc3804ae0

View File

@ -92,7 +92,8 @@ MainLoop::loop()
}
}
frameSpeed = millis() - frameStart;
if (frameSpeed >= 23) { // TODO: Configure max frame time at build
if (frameSpeed >= 34) { // TODO: Configure max frame time at build. Default
// to 30FPS
const char* slowestName = (slowestTask->name ? slowestTask->name : "(Unnamed)");
Log.warning("Slow frame: %dms, %d tasks, longest task %s was %dms", frameSpeed, taskCount, slowestName, slowest);
}