impr: Make the UI a bit less laggy
This commit is contained in:
parent
258481b0ba
commit
0462dab170
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user