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

Author Topic: What is better - QT Graphics or SFML?  (Read 10318 times)

0 Members and 3 Guests are viewing this topic.

Exxtay

  • Newbie
  • *
  • Posts: 3
    • View Profile
What is better - QT Graphics or SFML?
« on: March 24, 2013, 10:25:29 am »
I'm asking everyone with deep knowledge of QT.
I need to create something like this:
As you see here is just animated sprites with simple graphics effects.

And which library better suits for that type of applications? SFML or QT Graphics?

In better i mean: what is easier to use and what is faster in work.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: What is better - QT Graphics or SFML?
« Reply #1 on: March 24, 2013, 10:38:08 am »
It's Qt, not QT ;)

Both can do this, but Qt is a huge framework and will be longer to learn. And to do this properly with Qt, you'll have to learn two additional languages: QML and javascript.
Laurent Gomila - SFML developer

ccleung6

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: What is better - QT Graphics or SFML?
« Reply #2 on: March 25, 2013, 06:43:28 am »
I have tried use Qt's graphics framework to write a small game engine.
Qt's graphics drawing commands are damn slow.
It takes several milliseconds to finish one drawing.
How slow it will be if there are thousands of drawings per frame?

Finally I switch to use SFML, it is much much faster.

Good luck.  ;)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: What is better - QT Graphics or SFML?
« Reply #3 on: March 25, 2013, 07:49:30 am »
Qt has recently evolved a lot. To get decent performances you must use version 5, which is totally based on OpenGL 2, and you must use QML/javascript (not widgets or graphics view).
Laurent Gomila - SFML developer