1
0
mirror of synced 2024-11-14 11:07:43 +01:00

impr: Make the UI a bit less laggy

This commit is contained in:
WerWolv 2023-12-27 21:11:40 +01:00
parent 258481b0ba
commit 0462dab170

View File

@ -177,7 +177,7 @@ namespace hex {
static i32 lockTimeout = 0; static i32 lockTimeout = 0;
if (!shouldLongSleep) { if (!shouldLongSleep) {
lockTimeout = 2; lockTimeout = ImHexApi::System::getTargetFPS() / 2;
} else if (lockTimeout > 0) { } else if (lockTimeout > 0) {
lockTimeout -= 1; lockTimeout -= 1;
} }