Elsewhere there are things that we all miss, yet it takes just one to notice...

Demo3D2 source

Below is the single source file to the basic demonstration in Java of how to build a 3D mesh out of multiple objects and render it in a single call.

Optimising render calls like this reduces overhead and speeds things up a hell of a lot. Which is essential when you need every CPU clock cycle to process a shed load more information.

You can find the actual demo in action in HTML5 HERE (Demo3D2)…

This is using libGdx and it runs on desktop, android and in a web browser.

And it’s as simple as it gets.

Scroll to top