if the cubes may be static, you should think about to use AddMesh() to add them together to clusters. Once fused, the number of surfaces will be optimized automaticly. This may speed things up. Choose a clustersize that makes sense, eg. 25% of the screen.
uh, BTW, for AddMesh you need to make sure you don't use the Entity... commands, but the Mesh.. commands instead, eg:
use PositionMesh instead of POsitionEntity
use PaintMesh instead of EntityTexture
You may use PositionEntity in your Editor nevertheless, only in the game engine, where it needs to render fast, you should optimize it this way.
uh, BTW, for AddMesh you need to make sure you don't use the Entity... commands, but the Mesh.. commands instead, eg:
use PositionMesh instead of POsitionEntity
use PaintMesh instead of EntityTexture
You may use PositionEntity in your Editor nevertheless, only in the game engine, where it needs to render fast, you should optimize it this way.