parent
6cba868e20
commit
cadd4e5c2b
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user