Game Development Community

Fps

by Thomas Bang · in Torque Game Engine · 11/19/2007 (4:54 am) · 1 replies

Hi

What's the difference between these Values? What does it mean?

$fps::real

$fps::realTotal

$fps::virtual

$fps::virtualTotal


Thanks

Thomas

#1
11/27/2007 (10:29 am)
Real is supposed to represent frames per second in the real world (as in, if you looked at a clock on your desk). Virtual represents game time. If you set the engine to slow down on purpose, the virtual time would slow down with it.

Looking at the source code, I don't think realTotal and virtualTotal are even updaetd anymoer.

Alslo, $fps::real and $fps::virtual are only updated every half a second or so. Finally, both are "weighted" fps. In essence, the last values are multiplied by 93% and the new value is multiplied by 7% and then they are added together.