From 0462dab170c155e33ad52a310fc651d8a5bb9c4d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 27 Dec 2023 21:11:40 +0100 Subject: [PATCH] impr: Make the UI a bit less laggy --- main/gui/source/window/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/gui/source/window/window.cpp b/main/gui/source/window/window.cpp index da534a90a..5c568cd33 100644 --- a/main/gui/source/window/window.cpp +++ b/main/gui/source/window/window.cpp @@ -177,7 +177,7 @@ namespace hex { static i32 lockTimeout = 0; if (!shouldLongSleep) { - lockTimeout = 2; + lockTimeout = ImHexApi::System::getTargetFPS() / 2; } else if (lockTimeout > 0) { lockTimeout -= 1; }