+
+ draw_Count++;
+}
+
+int startUpdateThread(void*)
+{
+ updatesInit();
+
+ last_Second = tickCountMicro();
+
+ while(is_Running)
+ {
+ MICRO time = tickCountMicro();
+ handleInput();
+ update(game_step);
+
+ updateFPSCounters();
+ time = tickCountMicro() - time;
+
+ float wait = (1000000.0 / target_UPS - time);
+ update_Wait += 0 < wait ? wait : 0;
+
+ while(min_wait_micro < update_Wait)
+ {
+ update_Wait -= min_wait_micro;
+ SDL_Delay(min_wait_milli);
+ }
+ }
+
+ updatesClean();
+
+ return 0;
+}
+
+int startDrawThread(void*)
+{
+ drawInit();
+
+ while(is_Running)
+ {
+ draw();
+ }
+
+ drawClean();
+
+ return 0;