Most efficient method to render a bunch of cubes?,
Members - Reputation: 100
Posted 20 April 2012 - 09:11 AM
Crossbones+ - Reputation: 3129
Posted 20 April 2012 - 09:59 AM
Prime Members - Reputation: 699
Posted 20 April 2012 - 11:11 AM
Maybe could you be interested by geometry instancing ?
This way, you provide the mesh of the cube (only once) and the world matrices of all the instances (and eventually other data you need for rendering each instance).
With this technique all the cube instances would be rendered within a single draw call.
Sorry I can't be more specific, I only use DirectX10 , but I'm sure you'll find easily some documentation on OpenGL instancing