SFML community forums

Help => Graphics => Topic started by: Chunker120 on September 26, 2013, 07:40:45 am

Title: What is faster: using a sprite or some shapes?
Post by: Chunker120 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?
Title: Re: What is faster: using a sprite or some shapes?
Post by: Laurent 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.