feat: Add frame time graph to FPS display

This commit is contained in:
WerWolv
2023-12-20 13:42:42 +01:00
parent bf6b2db0cb
commit e951359a46
5 changed files with 49 additions and 6 deletions

View File

@@ -211,6 +211,8 @@ namespace hex {
this->fullFrame();
frameCount += 1;
ImHexApi::System::impl::setLastFrameTime(glfwGetTime() - m_lastStartFrameTime);
// Limit frame rate
// If the target FPS are below 15, use the monitor refresh rate, if it's above 200, don't limit the frame rate
const auto targetFPS = ImHexApi::System::getTargetFPS();