Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualrip-off

Posted 31 October 2012 - 10:10 AM

I'm bascially just wondering if there's any way to optimize the performance as it sometimes eats up more CPU than I would have thought it should

What amount of CPU usage were you expecting, and why? Generally, it is a good thing that no one tries to pre-emptively throttle your program - that way when you need to use the maximum available system resources you can (more or less). The OS is usually happy for your game to soak up any remaining CPU time. If your game knows that it doesn't need to use all the CPU, it can tell the OS this by issuing blocking calls.

I'm not overly familar with SFML, but some places to start include:
  • SetFramerateLimit - does reducing this value to 60 change anything?
  • Have you tried UseVerticalSync()?

#1rip-off

Posted 31 October 2012 - 10:08 AM

I'm bascially just wondering if there's any way to optimize the performance as it sometimes eats up more CPU than I would have thought it should
What amount of CPU usage were you expecting, and why?

There is a call to SetFramerateLimit - does reducing this value to 60 change anything? Have you tried UseVerticalSync()?

PARTNERS