refactor
This commit is contained in:
@@ -56,7 +56,7 @@ std::shared_ptr<UINode> create_debug_panel(
|
||||
static std::wstring fpsString = L"";
|
||||
|
||||
panel->listenInterval(0.016f, [engine]() {
|
||||
fps = 1.0f / engine->getDelta();
|
||||
fps = 1.0f / engine->getTime().getDelta();
|
||||
fpsMin = std::min(fps, fpsMin);
|
||||
fpsMax = std::max(fps, fpsMax);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user