mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
refactor
This commit is contained in:
parent
5fe5c6b27a
commit
5ffc054d75
16 changed files with 212 additions and 126 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue