Exact timing
by Dumbledore · in Torque Game Engine · 08/07/2008 (12:11 pm) · 3 replies
Hello. If i wanted to increment a variable exactly once a second, or once every 1.4 seconds, etc... Would it be adviseable to do this in ITickable::advanceTime() for my object?
The reason I say advanceTime is because since it receives a timeDelta you know how much time has passed. Whereas with processTick I am not sure you really know how long it has been since your last process.
The reason I say advanceTime is because since it receives a timeDelta you know how much time has passed. Whereas with processTick I am not sure you really know how long it has been since your last process.
Associate James Ford
Sickhead Games