Stable FPS

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
silversamand
Posts: 2
Joined: Fri Sep 18, 2009 8:37 am
Location: IRAN

Stable FPS

Post by silversamand »

I have a problem with irrlicht FPS.i want fix it exactly on 50 but when i change objects of scene (add or remove ) fps drastically changes.
How can i solve it?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Come up with more realistic expectations.
abhishekdey1985
Posts: 102
Joined: Sat Jan 17, 2009 4:33 am
Location: Pune
Contact:

Constant FPS is nearly impossible.

Post by abhishekdey1985 »

As vitek said....be realistic!! It can never happen that u can fix ur application rendering at Fix FPS. U can Limit ur FPS Range by enabling VSYNC.
I work on "The Best Real-Time 3D Engine"
Masterhawk
Posts: 299
Joined: Mon Nov 27, 2006 6:52 pm
Location: GERMANY
Contact:

Re: Stable FPS

Post by Masterhawk »

silversamand wrote:[...]i want fix it exactly on 50[...]
Why would you do so?
Image
Brainsaw
Posts: 1178
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Post by Brainsaw »

I guess this makes all the timing stuff easier to do.

@silversamand: I don't think that you will be able to achieve that. You could use a simple scene that renders faster than 50 FPS on every hardware and slow rendering down then, but I guess that it's not a good way.
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
roelor
Posts: 240
Joined: Wed Aug 13, 2008 8:06 am

Post by roelor »

Brainsaw wrote:I guess this makes all the timing stuff easier to do.

@silversamand: I don't think that you will be able to achieve that. You could use a simple scene that renders faster than 50 FPS on every hardware and slow rendering down then, but I guess that it's not a good way.
actually for some games thats nice, The game may go slower but is still playable.
CuteAlien
Admin
Posts: 9721
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

roelor wrote:
Brainsaw wrote:I guess this makes all the timing stuff easier to do.

@silversamand: I don't think that you will be able to achieve that. You could use a simple scene that renders faster than 50 FPS on every hardware and slow rendering down then, but I guess that it's not a good way.
actually for some games thats nice, The game may go slower but is still playable.
Agreed. A constant framerate is in many games more playable than a high framerate. And yes - the trick is simply to have scenes that can render with at least 50 FPS. Although using vsync is usually better as it avoids tearing and so you will have 15/30/60 FPS.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply