Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Very low FPS  (Read 5815 times)

0 Members and 1 Guest are viewing this topic.

LucasShadow

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Very low FPS
« 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.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Very low FPS
« Reply #1 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.
SFML / OS X developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Very low FPS
« Reply #2 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... ::)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

LucasShadow

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: Very low FPS
« Reply #3 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.

aBallofWin

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
Re: Very low FPS
« Reply #4 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 :)