--- a/src/window.c Tue May 06 22:54:38 2025 +0200 +++ b/src/window.c Tue May 06 23:04:54 2025 +0200 @@ -154,6 +154,13 @@ glViewport(0, 0, window_width, window_height); glClear(GL_COLOR_BUFFER_BIT); + // Execute all behaviors + // TODO: this can eventually be parallelized + for (unsigned int i = 0; i < ASC_MAX_SCENES; i++) { + asc_scene_execute_behaviors(&window->scenes[i]); + } + asc_scene_execute_behaviors(&window->ui); + // Draw all scenes for (unsigned int i = 0; i < ASC_MAX_SCENES; i++) { asc_scene_draw(&window->scenes[i]);