SFML community forums

Help => Graphics => Topic started by: binbinhfr on May 02, 2020, 09:10:26 am

Title: sf::ConvexShape / speed / GPU memory ?
Post by: binbinhfr on May 02, 2020, 09:10:26 am
Hi,

concerning shapes (like sf::ConvexShape or circles), if I use a lot of them (but changing their forms), I wonder what is the most efficient way to declare them.
Are they loaded once at creation in GPU memory (like textures) ?
If I change the number of vertices (setPointCount), are they loaded again ?
What about if I change only the position of a fixed number of vertices ?

In sumary : how are they managed in memory ? This will give me hints on how to manage them in my code.