Hi All
some times we need to specify the frame per socend rate of our demo,so that if we run our demo in deffrent system ,(computers), it will run in the same speed.
TFPScontrol class will offer that , controling FPS of our demo, control of duration of our animation parts if it is consistes of many parts , conditionally and controling of FPS animation.
how we could use this class?
simply declare an instance of our class , then create the animation in function and let it's name as Render ,(you could put your own desired name), then call one of the 4 functions class.
see the class and demo in the wiki
http://www.irrforge.org/index.php/Contr ... _animation
Controling FPS of our animation
-
- Posts: 518
- Joined: Tue Mar 29, 2005 9:02 pm
- Location: Alex,Egypt
- Contact:
IMHO, except for enabling vsync to help alleviate tearing on some systems, expecting am app to run at a certain frame rate strikes me as inelegant and a poor way to manage time. IMHO everything in a simulation/3d demo of any sort should be independent of frame rate. Thats not to say ur class isnt useful if one does have htings that rely on frame rate. I'm just mentioning that I think its poor practice.
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.
Crucible of Stars
Crucible of Stars
-
- Posts: 518
- Joined: Tue Mar 29, 2005 9:02 pm
- Location: Alex,Egypt
- Contact:
sometimes user need that their animation will not take all processing time of CPU, especially when the demo run in a windowed mode to make other application to actually running in a multitasking.
i think most demos could run in 60 FPS without any problem of tearing.
by the way this is not time management,the TTime class that i posted in wiki "Controling animation time in Irrlicht" could be consider as a time management , it will allow you to spcify which part of your animation will start to play and the playing duration of this part,this is a time anagement , (this is my own opinion).
any way thanks for your comments
i think most demos could run in 60 FPS without any problem of tearing.
by the way this is not time management,the TTime class that i posted in wiki "Controling animation time in Irrlicht" could be consider as a time management , it will allow you to spcify which part of your animation will start to play and the playing duration of this part,this is a time anagement , (this is my own opinion).
any way thanks for your comments
Magic 2d Library For Irrlicht : http://www.freewebs.com/bcxgl/index.htm
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/
http://www.freewebs.com/bcxdx/index.htm
http://groups.yahoo.com/group/bcxdxc/