Hi gents,
How much overhead if any is inherent in shape definition?
In other words is it better to set up my shapes in an initialization phase before the main update loop?
In simpleshapes.cpp we have this code:
sf::Shape Polygon;
Polygon.AddPoint(0, -50, sf::Color(255, 0, 0), sf::Color(0, 128, 128));
...
So we're defining a Shape variable and then adding points to it. This is done every tick.
Is it set up this way just for clarity? Would it be faster to do this in the init phase and then simply do
App.Draw(Polygon);
every tick?
It's been a few months since I worked with SFML and I seem to remember that it was quite fast for my purposes but I didn't quite have the insane speed from it that I expected and I'm wondering now if I was running into setup overhead.
Thanks!