summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2025-03-21 12:32:59 +0000
committeronelin <oscar@nelin.dk>2025-03-21 12:39:20 +0000
commitfcd22d1fd9d99a73eefa984548adf86189a0060b (patch)
tree63bdca43e83314ed406b2b5c1ccef10c48e0c1f4 /src/core
parent4e3de52226b2a247ea5da6240ae5e58a4cf95018 (diff)
Reset the camera before first iteration
Diffstat (limited to 'src/core')
-rw-r--r--src/core/src/loop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/src/loop.c b/src/core/src/loop.c
index 0062173..dd39db1 100644
--- a/src/core/src/loop.c
+++ b/src/core/src/loop.c
@@ -306,6 +306,9 @@ i32 engine_run(Platform* p, StateType initial_state, void* state_arg) {
/* The target frametime measured in μs */
const u32 fps_cap = p->fps_target > 0 ? 1000000 / p->fps_target : 0;
+ //window_resize(p->window, p->window->windowsize[0], p->window->windowsize[1]);
+ //r_reset_camera(p->cam);
+
/* Main loop */
do {
/* frame_start is μs since engine was initialized */
@@ -323,7 +326,6 @@ i32 engine_run(Platform* p, StateType initial_state, void* state_arg) {
/* Update */
StateType next_state;
- // TODO: maybe use delta instead?
next_state = update_func(dt, (void*)(mem->data));
if (next_state != STATE_null) {