summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2025-03-13 18:51:48 +0000
committeronelin <oscar@nelin.dk>2025-03-13 18:51:48 +0000
commitcdc6364e0af728aeb5bedd494cf6c9021af95858 (patch)
tree149d50e3bd90801b69f0b09e3e2aec01ea4a4496 /src/core
parente0ffd5461413b1eaf5a4eed7521a7ef4ba6fa49c (diff)
Use 30 fps in debugging builds
Diffstat (limited to 'src/core')
-rw-r--r--src/core/src/loop.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/src/loop.c b/src/core/src/loop.c
index 1481a94..72add13 100644
--- a/src/core/src/loop.c
+++ b/src/core/src/loop.c
@@ -236,7 +236,11 @@ Platform* engine_init(const char* windowtitle, i32 windowWidth, i32 windowHeight
p->resources = resources;
p->frame = 0;
- engine_fps_max(p, 0);
+#ifdef _DEBUG
+ engine_fps_max(p, 30);
+#else
+ engine_fps_max(p, 300);
+#endif
p->mem = memory_new(initial_memory);