Lots and lots of tiny triangles

Hi there,

I’m making a particle system but with itty bitty triangles.
There’s a big drain in CPU headroom and FPS when i use ofDrawTriangle()
Is there a better way of doing this?


look at examples provided by openFrameworks:


you can also just use a plain ofVboMesh in triangles mode (the default) create all the triangles in it and draw it. every three vertices you add to an ofVboMesh form a new triangle so you just need to put all your triangles in the vbo mesh by calling addVertex and then draw the whole mesh

That’s great, thanks for the tips.