mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
impr: Better font loading logic
This commit is contained in:
@@ -270,7 +270,6 @@ namespace hex {
|
||||
glfwWaitEventsTimeout(targetFrameTime - frameTime);
|
||||
|
||||
// glfwWaitEventsTimeout might return early if there's an event
|
||||
const auto frameTime = glfwGetTime() - m_lastStartFrameTime;
|
||||
if (frameTime < targetFrameTime) {
|
||||
const auto timeToSleepMs = (int)((targetFrameTime - frameTime) * 1000);
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(timeToSleepMs));
|
||||
|
||||
Reference in New Issue
Block a user