Game Development Community

getFPS?

by rennie moffat · in Torque Game Builder · 08/22/2010 (2:42 pm) · 5 replies

is there a way to get the current FPS? ANd could I attach a behavior, to a sceneObject, which called on schedule, getFPS? I would like to use this to manipulate the $timeAdvance. Some of my levels are a bit slower, and faster than others, as a result if I could monitor my FPS I could speed up or slow down the timeAdvance to accomodate.


About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
08/22/2010 (3:55 pm)
It's in the global variable $fps::real.
#2
08/22/2010 (4:33 pm)
so, forgive me for asking, but
a. how would I call it?
I am guessing, but would I call it like this...
%fps = $fps::real;

b. and can i use an object behavior to check it, and then set $timeAdvance


#3
08/22/2010 (7:15 pm)
If you want to be taken seriously, you have to at least TRY it first before asking.

You have been using this engine for well over a year. The kind of questions you ask are NOT questions. Maybe where you live they are, but in the real, professional world, these can't be classified as questions.

Sure... I know you're just going to say, "I was hoping that I could get a quick answer here. I paid for the engine. It's a free world and I can ask what I want." The problem is that I am *THIS CLOSE* to be completely burned out by repetitive questions on these forums. And your questions are beyond repetitive, they are inane.

Patrick created an awesome search for this site and I still think nobody is using it. USE IT!

When you don't find the answer, try to code it BEFORE ASKING YOUR QUESTION! I'm not asking for a lot... just 10 minutes of your time before you come running to the forums begging for all of us to do your work for you.
#4
08/22/2010 (9:35 pm)
ok, no worries, thank you very much.
#5
08/23/2010 (12:12 am)
PS the only reason I mentioned or asked is because of the format.


$fps::real is in a format I am not familiar with for a variable. But honestly no worries as I can test. I was just posting on the fly. That's all.





Cheers