mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Reduce CPU usage when FPS is unlocked
This commit is contained in:
@@ -399,6 +399,7 @@ namespace hex {
|
||||
|
||||
while (frameTime < maxFrameTime) {
|
||||
frameTime = glfwGetTime() - frameTimeStart;
|
||||
std::this_thread::sleep_for(100us);
|
||||
}
|
||||
|
||||
ImHexApi::System::impl::setLastFrameTime(glfwGetTime() - frameTimeStart);
|
||||
|
||||
Reference in New Issue
Block a user