Adding FPS overlay
by Eric Clausing · in Torque Game Engine · 10/09/2006 (8:43 am) · 5 replies
I have seen several games with screenshots of framerate. How does one go about adding that to the PlayGUI?
#2
Or you can add a simple text element in an overlay GUI (call it FPSGui, say). Then run a schedule that updates the text once a second.
10/09/2006 (8:58 am)
In console:metrics(fps);
Or you can add a simple text element in an overlay GUI (call it FPSGui, say). Then run a schedule that updates the text once a second.
#3
10/09/2006 (9:05 am)
I know about that though I was hoping to give player's something pretty to look at.
#4
Yes, that. Create a new GUI. Make it put a text item of the size you want in the location you want. Start a schedule, which asks the metrics system for the FPS once a second, and sets the text of the FPS element of the FPS GUI to that value. Done!
10/09/2006 (12:26 pm)
Quote:you can add a simple text element in an overlay GUI (call it FPSGui, say). Then run a schedule that updates the text once a second
Yes, that. Create a new GUI. Make it put a text item of the size you want in the location you want. Start a schedule, which asks the metrics system for the FPS once a second, and sets the text of the FPS element of the FPS GUI to that value. Done!
#5
10/09/2006 (12:29 pm)
Okay that makes sense.
Torque Owner Tim Heldna