- // run the updates
- for (int i = 1; i <= iupdate_sum; i++)
- {
- handleInput();
- update(time_step / 1000);
- }
- // remove the updates that where run from the sum
- update_Sum -= iupdate_sum;
- last_Block_Update = tickCountMicro();
- }
+ SDL_WaitThread(updatesThread, NULL);
+ SDL_WaitThread(drawThread, NULL);