| 06-17-2009, 02:04 PM | #1 |
while playing with my systems i realised a weird bug with timers. i have my physic system tat use a timer of 0.03 periode and my timing system tat use 0.01. and weeeeeiiiirrddd if i do heavy loop inside the timing system like creating 20 units at same time, it will keep running interupting my physic system's timer, so the physic isnt run before after the creation and a few more intervals of the timing system. anyone know a fix without using 1 single timer for both? |
| 06-20-2009, 02:36 AM | #2 |
Sounds to me like standard behaviour, creating units lags the game up, but timers still run as scheduled and put code on the stack, so after the lag finishes the game still has two more intervals of the timing system to run before it's the physics' system turn... unless you mean to say the timing system runs more than just three times between two physics executions. |
