wait for events to reduce cpu usage

c3
Alessandro Mauri 2 days ago
parent 73bc933eb5
commit fa3362cc66
  1. 3
      src/main.c3

@ -14,7 +14,8 @@ fn int main(String[] args)
rl::set_config_flags(rl::FLAG_WINDOW_RESIZABLE); rl::set_config_flags(rl::FLAG_WINDOW_RESIZABLE);
rl::init_window(width, height, "Ugui Test"); rl::init_window(width, height, "Ugui Test");
ui.input_window_size(width, height)!!; ui.input_window_size(width, height)!!;
rl::set_target_fps(30); rl::set_target_fps(60);
rl::enable_event_waiting();
isz frame; isz frame;

Loading…
Cancel
Save