1
Graphics / Recreating Vertex Arrays vs. Adjusting Vertex Position
« on: December 09, 2013, 02:57:55 am »
When using vertex arrays to draw sprites, is it better to clear the vertex array at the beginning of every frame and then add all the objects again, or to give every object it's own vertex pointer and let it change the position of that quad every frame?
I recently stopped using sf::Sprites and drawing them onto panels every frame in favor of using a vertex array. After I did this I actually saw a drop in performance and I'm trying to figure out why.
I recently stopped using sf::Sprites and drawing them onto panels every frame in favor of using a vertex array. After I did this I actually saw a drop in performance and I'm trying to figure out why.