Game Development Community

Display FPS

by Donny Alumbaugh · in Torque Game Engine · 07/22/2004 (8:50 am) · 5 replies

Is there something in the engine that tracks fps that I can use?

I'm trying to figure out why, when I add 10 AIPlayers, that the framerate drops so much. So I need access to the fps to determine the impact of changes.

Note: I'm sure this question has been asked before but the forum search revealed nothing. Please please please change over to phpBB or something. I know the GG developers have better things to do than tweak custom forum code. Please?

#1
07/22/2004 (8:58 am)
Type metrics(fps); into the console.

I dont know why but i get awful framerates on my machine, but i have seen screenshots with people that have got 200-300 fps!!

Im sure there is someone round here that would build GG a nice phpBB forum if they supplied a server...
#2
07/22/2004 (9:03 am)
PhpBB is not that secure, and it would require custom programming to tie it into the GG's database for SDK owners.

Also if you had searched the resources for FPS you would have found the following.

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4137
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3874
#3
07/22/2004 (9:23 am)
Ok. I won't bitch about the broken search. What I really want to know is why the fps is so much lower. My guesses:

1) Too much is being replicated over the network. For the moment the only thing I want replicated is the position so I may want my Player class to subclass GameBase instead of ShapeBase?.
2) It is purely client-side. In the AI most likely.
3) It is not related to my code but is a more typical fps problem (incorrect audio settings can cause this).
4) My build is not properly optimized.

Anyone have any other ideas where I should look?
#4
07/22/2004 (10:17 am)
Never mind:

http://www.garagegames.com/mg/snapshot/view.php?qid=822

With the multiple references to updated network code in the features list, I suspect #1 is it.
#5
10/05/2004 (7:00 pm)
Just an observation: running a RELEASE(optimized) build of TGE on Win32 I get a FPS about 4x faster than running the DEBUG build of TGE.

~30 fps vs ~130 fps!