Hi, I have a question about time_step


I wanna know if my thoughts are correct:

For example: I wanna move a model in a direction. It is not important in which direction. It is only an example.

while(1)
{
model.x += 1;
//At 60 FPS it would move 60 quants in one second.
wait(1);
}

BUT now I wanna do that with time_step in the same speed.

while(1)
{
model.x += time_step * 3.75;
wait(1);
}



My question is: Is 3.75 the correct value to get the same speed? It is without c_move, but that is not the question.

I have found this in the manual:

The duration of the last frame cycle in ticks, i.e. sixteenths of a second. A speed multiplied by time_step gives the distance to be covered per frame. On a frame rate of 16 fps both variables have a value of 1.

So I thought: 1 / 16 * 60frames = 3.75
And also 60/16 = 3.75

Is there a professional who knows if this is correct?



Second question. What if I wanna wait 4 frames with wait(4) at 60 fps. But now with time_step? So that it would be only 2 frames at 30 fps? Because 30 fps is only the half of 60. So wait(4) would take the double time as at 60 fps.


Last edited by Logitek; 11/11/15 16:26.