mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 08:20:02 -05:00
impr: Make the UI a bit less laggy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user