SFML community forums

Help => General => Topic started by: Assassinbeast on October 24, 2012, 01:03:26 am

Title: How does the timers/clocks work?
Post by: Assassinbeast on October 24, 2012, 01:03:26 am
Hi everybody :)

I dont really understand the timers/clocks. I just want my game to be on 60 fps on any computer.
In Allegro, it was very very easy.... just make a variable, start it and wupti... its 60 fps.

But in SFML it seems a little more confusing to me.

i looked at the tutorial here:
http://www.sfml-dev.org/tutorials/2.0/system-time.php (http://www.sfml-dev.org/tutorials/2.0/system-time.php)

But i didn't really understand it :(

Hope someone helps
thanks!!!!  ;D
Title: Re: How does the timers/clocks work?
Post by: FRex on October 24, 2012, 01:05:47 am
http://www.sfml-dev.org/tutorials/2.0/window-window.php
in controlling the framerate section.. can't imagine it being any simpler..
Title: AW: How does the timers/clocks work?
Post by: eXpl0it3r on October 24, 2012, 01:35:45 am
How about window.setFramerateLimit(60);? ;)
Title: Re: How does the timers/clocks work?
Post by: Assassinbeast on October 24, 2012, 01:57:43 am
Thanks for help!!! that was easy  ;D