Currently for a project I have to call
ofDrawBox(ofPoint(x, y, z), d); about 50,000 times, and its a bit laggy to make this call 50,000 times per draw command.
In my graphics class, we learned that when programming GLSL shaders, you can use a uniform variable to keep data on the GPU, and have the shader use the uniform variable to process the data differently (so you don’t have to resend the data over and over again).
Is there anything like this in openframeworks, where i.e. I know the (x, y, z) location of every box in advanced, so is there a way I could load this once, and only provide a d-parameter each loop of the draw command?