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

Author Topic: What is faster: using a sprite or some shapes?  (Read 966 times)

0 Members and 1 Guest are viewing this topic.

Chunker120

  • Newbie
  • *
  • Posts: 31
    • View Profile
What is faster: using a sprite or some shapes?
« on: September 26, 2013, 07:40:45 am »
I'm working on a GUI system, and I want to add a button for example, and the button looks like a rectangle with 3 lines on it. It can be either made as a sprite or some shapes. Which one would be optimal to use?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: What is faster: using a sprite or some shapes?
« Reply #1 on: September 26, 2013, 07:42:38 am »
I don't think it will make any noticeable difference. We're talking about a few buttons, not a million.

Use what fits the best what you want to do: if it's a static button then a sprite with a texture will be perfect, if you want to be able to customize its appearance programatically then prefer a bunch of shapes.
Laurent Gomila - SFML developer