fix: Multiple FreeBSD build and run errors

This commit is contained in:
WerWolv
2025-08-10 22:38:12 +02:00
parent 8c9f3fa569
commit 23d673f920
4 changed files with 9 additions and 2 deletions

View File

@@ -352,7 +352,7 @@ namespace hex {
while (frameTime < targetFrameTime - longestExceededFrameTime) {
auto remainingFrameTime = targetFrameTime - frameTime;
glfwWaitEventsTimeout(remainingFrameTime);
glfwWaitEventsTimeout(std::min(remainingFrameTime, 1000.0));
auto newFrameTime = glfwGetTime() - frameTimeStart;