SFML community forums

Help => System => Topic started by: LucasShadow on May 22, 2012, 07:36:47 pm

Title: Very low FPS
Post by: LucasShadow on May 22, 2012, 07:36:47 pm
So I have been upgrading my game from SFML 1.6 to SFML 2.0 and have noticed that my FPS has dropped from over a hundred (frame rate not limited) to a constant FPS of 10 in SFML 2.0. Ive been browsing the forum for solutions and tried them.

I am not using any polling events for the joystick.

I have the same result in Release as in Debug.

Is there something in SFML 2.0 that drastically changes FPS performance from SFML 1.6? Because all I have done really is change the code to fit the syntax of SFML 2.0.
Title: Re: Very low FPS
Post by: Hiura on May 22, 2012, 10:10:08 pm
you can use a profiler in order to know where your application spend most its CPU time.
Title: Re: Very low FPS
Post by: eXpl0it3r on May 22, 2012, 10:49:03 pm
Is there something in SFML 2.0 that drastically changes FPS performance from SFML 1.6? Because all I have done really is change the code to fit the syntax of SFML 2.0.

It always depends on your code and since we have no idea what you're doing, we can't help, except pointing towards a profiler... ::)
Title: Re: Very low FPS
Post by: LucasShadow on May 23, 2012, 01:19:35 am
you can use a profiler in order to know where your application spend most its CPU time.
Thanks, this helped me find the problem.
Title: Re: Very low FPS
Post by: aBallofWin on May 25, 2012, 01:06:11 pm
you can use a profiler in order to know where your application spend most its CPU time.
Thanks, this helped me find the problem.

Could you tell us what was going on? Would be interesting to know :)