diff options
| author | onelin <oscar@nelin.dk> | 2025-03-13 18:51:48 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-03-13 18:51:48 +0000 |
| commit | cdc6364e0af728aeb5bedd494cf6c9021af95858 (patch) | |
| tree | 149d50e3bd90801b69f0b09e3e2aec01ea4a4496 /src | |
| parent | e0ffd5461413b1eaf5a4eed7521a7ef4ba6fa49c (diff) | |
Use 30 fps in debugging builds
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/src/loop.c | 6 |
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); |
