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

Author Topic: How do I diagnose why SFML runs slowly?  (Read 1829 times)

0 Members and 1 Guest are viewing this topic.

MaTachi

  • Newbie
  • *
  • Posts: 5
    • View Profile
How do I diagnose why SFML runs slowly?
« on: November 02, 2012, 09:04:51 pm »
Hi!

I'm running Ubuntu 12.10, and I have compiled SFML 2 and its examples from source (I just cloned the git repo). However, when I'm playing the pong example it runs with extremely bad performance. And its graphics and logic is far from advance. :S The game lags so much so the ball sometimes flies right through the pads.

What should I do to figure out what the bottleneck is?

My graphics card is a AMD 6870 and I use AMD's proprietary drivers.

EDIT: I installed Teeworlds from Ubuntu Software Center and it ran fine in window mode. So it's evidently possible to run games on the computer.
« Last Edit: November 02, 2012, 09:17:08 pm by MaTachi »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10827
    • View Profile
    • development blog
    • Email
AW: How do I diagnose why SFML runs slowly?
« Reply #1 on: November 02, 2012, 09:40:24 pm »
Try a different driver...
Is the installed game also OpenGL based?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

MaTachi

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: AW: How do I diagnose why SFML runs slowly?
« Reply #2 on: November 02, 2012, 09:46:58 pm »
Try a different driver...
Graphics driver? What other should I try? The open source drivers are pretty crappy in games as far as I know. The AMD graphics driver I have installed is through Ubuntu's package manager.

Is the installed game also OpenGL based?
Dunno, how do I know that?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10827
    • View Profile
    • development blog
    • Email
Re: AW: How do I diagnose why SFML runs slowly?
« Reply #3 on: November 02, 2012, 10:57:11 pm »
Graphics driver? What other should I try? The open source drivers are pretty crappy in games as far as I know. The AMD graphics driver I have installed is through Ubuntu's package manager.
It doesn't matter where you get the driver from, if it doesn't support your chipset well... Also don't make assumption without testing them, specially if the alternative doesn't work.
Being on a Linux system requires some experimentation, so don't hesitate whenever you need to test things. ;)

Dunno, how do I know that?
You could've just looked on their website...
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Predator106

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: How do I diagnose why SFML runs slowly?
« Reply #4 on: November 05, 2012, 04:13:58 am »
actually the oss radeon drivers are pretty awesome in my experience. i have the exact same card and recommend just using the radeon drivers, catalyst sucks.

e.g. i can run amnesia maxed out just fine.