SFML community forums
Help => Graphics => Topic started by: Notion on July 08, 2017, 01:04:17 pm
-
This is a question of efficiency I guess. If I set the color of a single sprite to a new Color, does the rendering require the GPU to switch shaders? Does every colored object has its own shader? Would it be of any use, to pool Objects colored in the same color regarding their draw-calls?
Thanks in advance!
-
Of course not... SFML doesn't use shaders internally, and even if it did, they can use variables passed from C++, no need to hard-code different shaders to support multiple color values ;)