figments: mainloop: 30fps should be the slowest frame, actually
This commit is contained in:
parent
7970192c1a
commit
ddc3804ae0
@ -92,7 +92,8 @@ MainLoop::loop()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
frameSpeed = millis() - frameStart;
|
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)");
|
const char* slowestName = (slowestTask->name ? slowestTask->name : "(Unnamed)");
|
||||||
Log.warning("Slow frame: %dms, %d tasks, longest task %s was %dms", frameSpeed, taskCount, slowestName, slowest);
|
Log.warning("Slow frame: %dms, %d tasks, longest task %s was %dms", frameSpeed, taskCount, slowestName, slowest);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user