Hello, I just wanted to ask which operation would have theoreticly more performance.
Is it better to have for example 1000 different rectangle shapes that are drawn each frame.
Or is it better to have one single rectangle shape that gets changed in a loop and gets drawen 1000 times.
For example something like this:
for(sf::RectangleShape &shape : shapes)
{
shape.setRotation(other_rotation);
shape.setPosition(other_pos);
shape.setFillColor(other_fill_color);
shape.setOutlineColor(other_outline_color);
window.draw(shape);
}
Which one is faster?
And what about sprites? Is it better to have 1000 sprites or one single sprite that gets changed every frame before drawing.