how to set 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
move around and shoot

how to set fps?

Post by move around and shoot »

how do u set the frame rate? is there a command or do i just need to try and keep it stable and optimized?
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

Framerate in Irrlicht depends on your hardware. It goes as fast as your hardware can. You could limit it with the VSync option (boolean value before event receiver value in createDevice() function). You don't need to optimize nor keep it stable, it'll be always the maximum.
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
move around and shoot

Post by move around and shoot »

ya i mean to limit it. my comp is slow, and so when i distribute any to friends to try, it goes super fast for them. can u post an example of using the vsync? im used to engines where u just state the fps. NEWB HERE
spsteam
Posts: 9
Joined: Mon Oct 04, 2004 8:52 am
Location: Spain
Contact:

Post by spsteam »

You don't need to limit the fps. You need to limit the movement at each frame in function of the elapsed time. See this link:

http://irrlicht.sourceforge.net/phpBB2/ ... .php?t=723
---------------------------------------------
http://usuarios.lycos.es/spsteam/
Post Reply