checking frame rate

Non-platform specific questions.

checking frame rate

Postby DollMaster » Mon Nov 28, 2011 6:16 am

how does one check the fps in their game? and what is a good normal/healthy frame rate? tried searching for a tutorial on how to include one, but had no luck. thanks.
DollMaster
 
Posts: 65
Joined: Fri Jun 16, 2006 2:38 am
Score: 2 Give a positive score

Re: checking frame rate

Postby akr » Mon Nov 28, 2011 6:37 am

try

textNumber=frame

in your text actor

Would start with 25 fps. Depends on target.
Co-Developer of GE engine

If u are interrested in new features of apple or android ge engines check the engine support website game-editor.net regulary.
akr
 
Posts: 453
Joined: Thu Feb 25, 2010 7:56 pm
Location: Germany, Ulm
Score: 40 Give a positive score

Re: checking frame rate

Postby lcl » Mon Nov 28, 2011 7:21 am

No, akr, that won't work.
frame is just the number of the current frame and it grows all the time.
To get the fps, one has to use real_fps

@DollMaster: You can use the akr's code, but change frame to real_fps
And to change fps, go to game properties and there you can see a number which is 30 by default. You can change it to anything. :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: checking frame rate

Postby akr » Mon Nov 28, 2011 9:41 am

Thanks. You are right.
Co-Developer of GE engine

If u are interrested in new features of apple or android ge engines check the engine support website game-editor.net regulary.
akr
 
Posts: 453
Joined: Thu Feb 25, 2010 7:56 pm
Location: Germany, Ulm
Score: 40 Give a positive score

Re: checking frame rate

Postby Leif » Mon Nov 28, 2011 10:00 am

what is a good normal/healthy frame rate?


If we talk about smartphones - 24 FPS is quite good. Enough to play normally and discarges battery not so fast.
But ! More important is - stability of FPS. When FPS is stable (for example 23-24 and not lower, when 24 is max ) your game runs smooth. If FPS are unstable - differs from 0 to 24 during rintime - actually noone can play such game.

To make game stable most important is not to overload it with great amount of actors or with great-size actors.
Repulsor beam + heavy cannons
User avatar
Leif
 
Posts: 147
Joined: Mon Dec 15, 2008 12:42 pm
Location: Moscow, Russia
Score: 10 Give a positive score

Re: checking frame rate

Postby Hblade » Mon Nov 28, 2011 2:11 pm

Code: Select all
int FPS=round(real_fps);
sprintf(text, "Frame Rate: %d", FPS);


That will display your frame rate. This code needs to be put in "Draw Actor" on a text actor.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: checking frame rate

Postby DollMaster » Tue Nov 29, 2011 6:35 pm

thanks guys.
DollMaster
 
Posts: 65
Joined: Fri Jun 16, 2006 2:38 am
Score: 2 Give a positive score

Re: checking frame rate

Postby Hblade » Tue Nov 29, 2011 8:10 pm

np
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest