Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sf::ConvexShape / speed / GPU memory ?  (Read 1144 times)

0 Members and 1 Guest are viewing this topic.


  • Newbie
  • *
  • Posts: 21
    • View Profile
sf::ConvexShape / speed / GPU memory ?
« on: May 02, 2020, 09:10:26 am »

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.