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

Author Topic: Graphics package vs. DirectX drawing  (Read 2965 times)

0 Members and 1 Guest are viewing this topic.

MahanGM

  • Newbie
  • *
  • Posts: 18
    • Yahoo Instant Messenger - mahan_pro2000
    • View Profile
    • http://www.df-gamez.com
Graphics package vs. DirectX drawing
« on: January 12, 2012, 11:48:46 am »
I wanted to know that Graphics package of SFML has a performance like DirectX 2D drawing or not. I don't know is it the right question or not.

Thanks.
This is a land of broken hearts, where bullets shatter dreams (50 Cent)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Graphics package vs. DirectX drawing
« Reply #1 on: January 12, 2012, 12:05:13 pm »
DirectX is lower level than SFML, so of course it has better performances. In some situations it will be significant, in others you won't see the difference at all.

The only right question would be "is SFML's graphics module good enough for my project". And without knowing what you intend to do with SFML, we can't answer.
Laurent Gomila - SFML developer

MahanGM

  • Newbie
  • *
  • Posts: 18
    • Yahoo Instant Messenger - mahan_pro2000
    • View Profile
    • http://www.df-gamez.com
Graphics package vs. DirectX drawing
« Reply #2 on: January 12, 2012, 07:42:52 pm »
Thanks for asking. I was thinking about Game Engines. I'm currently writing an engine and it uses SFML for the image rendering part. Game Engines usually need a quick and large mass of process.

So what are you saying?
This is a land of broken hearts, where bullets shatter dreams (50 Cent)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Graphics package vs. DirectX drawing
« Reply #3 on: January 12, 2012, 08:31:12 pm »
The game engine is still not the final application, so it depends on what your users will do ;)

The best solution is probably to design your engine so that it uses abstractions, and can switch easily between different back-ends. So if SFML is not good enough, you can replace it with DirectX or whatever.
Laurent Gomila - SFML developer

MahanGM

  • Newbie
  • *
  • Posts: 18
    • Yahoo Instant Messenger - mahan_pro2000
    • View Profile
    • http://www.df-gamez.com
Graphics package vs. DirectX drawing
« Reply #4 on: January 13, 2012, 08:37:15 am »
Yeah, the final thing would be everything! But at least I know the usage of engine might be generic. The generics are always give you a set of tools for a general usage. I don't know but I think SFML is right for doing this.

About the architecture you're right, engines need to be designed in a way to easily port and switch between different platforms.

Thanks.
This is a land of broken hearts, where bullets shatter dreams (50 Cent)

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Graphics package vs. DirectX drawing
« Reply #5 on: January 13, 2012, 08:45:23 am »
Quote
Yeah, the final thing would be everything!

So you're writing a library without a specific demand? That's a mistake in my opinion. I think a library/engine should be done to make programming game A or a specific type of games possible, not for "every kind of game".

MahanGM

  • Newbie
  • *
  • Posts: 18
    • Yahoo Instant Messenger - mahan_pro2000
    • View Profile
    • http://www.df-gamez.com
Graphics package vs. DirectX drawing
« Reply #6 on: January 13, 2012, 03:05:59 pm »
You didn't get my point. By `everything` I mean every kind of game. Little games with low process and big games with high process. The only blank field is, how do you want to know what would happen if you were done with your engine and see then that the SFML is not capable for your engine. (By process job I mean)
This is a land of broken hearts, where bullets shatter dreams (50 Cent)