What is the best way to obtain and display fps (frames per second) ?
by Blake Drolson · in Torque Game Builder · 01/13/2010 (1:13 am) · 1 replies
Hi there,
I was trying to get some fps text displays going (to toggle on and off) , and I tried using metrics(fps), but all I get is a blank white box in the upper left corner of the screen. Is there some trick in getting useful info out of this?
I see metrics.fps is in the common folder. I have recompiled the engine (TGB 1.74) with
#define TORQUE_GATHER_METRICS 2
but this does not seem to change anything regarding metrics outputting readable info.
I also came across the $fps::real variable, and this does seem to have useful fps info. Thing is I can't find any docs on it. Is $fps::real what I should be using? Does the metrics.cs code have any current use? Is there any current docs on any of this?
Thanks in advance for any answers.
I was trying to get some fps text displays going (to toggle on and off) , and I tried using metrics(fps), but all I get is a blank white box in the upper left corner of the screen. Is there some trick in getting useful info out of this?
I see metrics.fps is in the common folder. I have recompiled the engine (TGB 1.74) with
#define TORQUE_GATHER_METRICS 2
but this does not seem to change anything regarding metrics outputting readable info.
I also came across the $fps::real variable, and this does seem to have useful fps info. Thing is I can't find any docs on it. Is $fps::real what I should be using? Does the metrics.cs code have any current use? Is there any current docs on any of this?
Thanks in advance for any answers.
Torque Owner Blake Drolson
Imminent Games
I used this resource linked below to add a working gui element that looks nice to the display the fps.
http://www.torquepowered.com/community/resources/view/4137
Would still love to read some docs or info about $fps::real and related variables.