Game Development Community

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.

#1
08/07/2008 (12:26 pm)
Yes you can use advanceTime. ProcessTick happens every 32 milliseconds.
#2
08/07/2008 (12:53 pm)
Thanks I think i'll use advanceTime then.

Quote:
ProcessTick happens every 32 milliseconds.

No it doesn't. But for every 32 milliseconds that passes, processTick() will be called.
#3
08/07/2008 (12:56 pm)
Ok, yeah thats what I meant '-)