mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-01-30 16:39:35 -06:00
@@ -390,7 +390,7 @@ namespace hex {
|
||||
|
||||
glfwSwapBuffers(this->m_window);
|
||||
|
||||
while (glfwGetTime() < this->m_lastFrameTime + (1 / this->m_targetFps))
|
||||
while (glfwGetTime() < this->m_lastFrameTime + 1 / (ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow) ? this->m_targetFps : 5.0))
|
||||
std::this_thread::sleep_for(500us);
|
||||
this->m_lastFrameTime = glfwGetTime();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user