Game Development Community

Is there any way to make time go faster?

by NEOK · in Torque Game Builder · 12/30/2005 (5:35 pm) · 4 replies

I wonder if I could adjust some time value to make all the object move faster.
I just want to get some kind of accumulated data if my game run for a long time.
Happy new year!

#1
12/30/2005 (5:43 pm)
I haven't tried this extensively in T2D, but it does work to some extent. The pre-existing global variable, $timeScale, controls the sim time. 1.0 is default, just do "$timeScale = 2;" at the console to double the speed of things.

Again I'm not sure if this is fully integrated into T2D, its a TGE feature, but it just worked to some extent for me with no visible ill effects.
#2
12/30/2005 (5:47 pm)
Incidentally there are a few other related variables, $timeAdvance and $frameSkip. The former I believe is a fixed-step override for the sim time (e.g. force a certain delta between main loop runs instead of the calculated elapsed time) and the latter just says how often to push the pre-rendered buffer to the screen or something like that.
#3
12/30/2005 (6:38 pm)
This is good data to know, thanks for the tips luke
#4
12/31/2005 (10:00 pm)
That's exactly what I was looking for, Thanks Luke.
I wonder where I could get that kind of TGE general tips though.