impr: Unlock frame rate in more cases

This commit is contained in:
WerWolv
2025-05-10 10:43:07 +02:00
parent fc87bc0cf1
commit eec6a5da0a
2 changed files with 8 additions and 0 deletions

View File

@@ -329,6 +329,11 @@ namespace hex {
// Unlock frame rate if there's more than one viewport since these don't call the glfw callbacks registered here
if (ImGui::GetPlatformIO().Viewports.size() > 1)
this->unlockFrameRate();
// Unlock frame rate if there's any task running that shows a loading animation
if (TaskManager::getRunningTaskCount() > 0 || TaskManager::getRunningBlockingTaskCount() > 0) {
this->unlockFrameRate();
}
}
// Hide the window as soon as the render loop exits to make the window