projects
/
voxel-shooter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc97e66
)
syncing
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Fri, 31 Dec 2021 22:17:37 +0000
(16:17 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Fri, 31 Dec 2021 22:17:37 +0000
(16:17 -0600)
src/main.onyx
patch
|
blob
|
history
diff --git
a/src/main.onyx
b/src/main.onyx
index 135d1e63cfe5c3f88c03b7a62e08dcc78ec7799a..62b2bbdb427cc5a1fbfd1356ee43a1f945c741c7 100644
(file)
--- 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;