From: Brendan Hansen Date: Fri, 31 Dec 2021 22:17:37 +0000 (-0600) Subject: syncing X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=60a83f32467577595e7bb6a6b88e2c3bdd82916f;p=voxel-shooter.git syncing --- diff --git a/src/main.onyx b/src/main.onyx index 135d1e6..62b2bbd 100644 --- a/src/main.onyx +++ b/src/main.onyx @@ -19,7 +19,7 @@ selected_block: Vector3i; window: GLFWwindow_p; create_window :: () => { - #if runtime.OS == runtime.OS_Linux { + #if runtime.compiler_os == .Linux { glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2); glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API); @@ -177,6 +177,7 @@ main_loop :: () { now = glfwGetTime(); dt := now - last; last = now; + dt = math.clamp(dt, 0, 0.5); seconds += dt; frame_count += 1;