WerWolv / ImHex

🔍 A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.
https://imhex.werwolv.net
GNU General Public License v2.0
40.06k stars 1.76k forks source link

fix framerate limiter #1632

Closed daver32 closed 2 months ago

daver32 commented 2 months ago

Problem description

The framerate limiter doesn't work when inputs are being sent (eg mouse cursor moving over the window), because glfwWaitEventsTimeout returns early when it encounters an event.

Implementation description

I made it sleep for the remaining time when that happens.

WerWolv commented 2 months ago

Thanks a lot!