SFML community forums
Help => Graphics => Topic started by: Olysold on July 16, 2013, 01:50:04 pm
-
Hello. I was wondering, is it an expensive operation to constantly keep setting textures to a sprite? Say I have a character that shoots out textured bullets. In the construction of those bullets, would it be better to just copy a sprite that has already been textured or set a texture to the sprite on each shot? Or is there no difference whatsoever?
-
There's no difference at all. The heavy operations all occur in the draw function, actually. Until you call it, nothing much happens except assignments and lightweight stuff.