SFML community forums

Help => Graphics => Topic started by: Grimshaw on February 07, 2011, 04:44:03 pm

Title: Rendering Sprites: Best practices
Post by: Grimshaw on February 07, 2011, 04:44:03 pm
Hello, i got myself questioning myself what would be the best practice to render equal sprites.

I mean, is it better to have multiple sprite objects, for different transformations of the same sprite, or should it be faster to draw sprite, setposition, draw, setposition,draw ?

What do you recommend for such cases?

Thanks
Title: Rendering Sprites: Best practices
Post by: Laurent on February 07, 2011, 09:09:49 pm
Transforming a sprite is almost free, so it doesn't really matter, choose the best solution design-wise.