- //cout << "total:\t" << total << endl;
- //cout << "rR:\t" << rRun << endl;
- //total = 0;
- }
-}
-
-void blockUpdate()
-{
- long int start = tickCountMicro();
- long int diff = start - last_Block_Update;
-
- //cout << "Block" << endl;
-
- // Calculate the updates that should be run for the next draw
- update_Sum += (float)(diff * target_UPS) / 1000000;
-
- // insures the float to int cast is done once.
- int iupdate_sum = (int)update_Sum;