What is the method for render the maximum amount of cubes in threejs?

What is the method for render the maximum amount of cubes in threejs? I saw about merged, instanced, including batched meshes… but batched meshes have the max that i know with 20.000 cubes, but… there is a bunch or a better threejs library which is the most fast about rendering a lot, a lot of cubes in one scene like 1 million cubes?

Could you share the example of rendering 1 million cubes you mention?

Since it’s usually minecraft-clone related, solution is always to not render this 1mil cubes, even if they are in the world. The fact that things are in the world doesn’t mean they have to be rendered, as most of the cubes are usually either too far, or entirely occluded, resulting in less than 1000 actually being on the screen.

Some food-for-thought:

To answer the question in the title: the best method for render the maximum amount of cubes in threejs is to not do that.

3 Likes