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?

Thanks,
Miles

look at examples provided by openFrameworks:

example/gl/textureBufferInstancedExample
example/gl/vboMeshDrwaInstancedExample

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.