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

Author Topic: sf::RenderWindow vs sfml/qt  (Read 3235 times)

0 Members and 1 Guest are viewing this topic.

cfrankb

  • Newbie
  • *
  • Posts: 29
    • View Profile
sf::RenderWindow vs sfml/qt
« on: July 23, 2010, 12:22:40 am »
Situation:

I'm using OpenSuse 11.3 with the opensource "radeon" driver for my ATI X1200 (RS690). Performance is worse than it was under 11.2. Funny thing is that qt/SFML app gives me better framerate (within tolerance) than the solo SFML window (way too slow).

Questions

What is the difference in implementation between a sf::RenderWindow and SFML/qt view? Is the former using overlay? If that is the case, it is possible to disable the use of overlay as the "radeon" driver doesn't seem to support them?

Regards,
Frank B.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
sf::RenderWindow vs sfml/qt
« Reply #1 on: July 23, 2010, 08:11:48 am »
SFML doesn't use overlays at all. I have no idea why the native window is slower than the Qt one. Which source code do you use to test the native window?
Laurent Gomila - SFML developer

cfrankb

  • Newbie
  • *
  • Posts: 29
    • View Profile
sf::RenderWindow vs sfml/qt
« Reply #2 on: July 24, 2010, 05:57:33 am »
I've reduced the code to simpliest expression.
http://www.sassociations.net/cfrankb/lgck/files/main.cpp

Windows performance
very acceptable and steady

time: 0.003021
time: 0.002736
time: 0.002969
time: 0.002785
time: 0.003455
time: 0.002951
time: 0.003027
time: 0.002904
time: 0.002792
time: 0.002776
time: 0.003016
time: 0.003111
time: 0.002905
time: 0.003325
time: 0.002804
time: 0.002825

Linux performance
linux timing is very erratic.

time: 0.033695
time: 0.008993
time: 0.009385
time: 0.029248
time: 0.009420
time: 0.033759
time: 0.028335
time: 0.008597
time: 0.009402
time: 0.019659
time: 0.009232
time: 0.026068
time: 0.026345
time: 0.008113
time: 0.009443
time: 0.015783
time: 0.020896
[/url]

Antidote

  • Newbie
  • *
  • Posts: 35
    • View Profile
sf::RenderWindow vs sfml/qt
« Reply #3 on: July 25, 2010, 12:48:06 am »
It could be the OGL backend for SFML or your drivers ;P