Faster AddMesh?

BlitzMax Forums/MiniB3D Module/Faster AddMesh?

Hezkore(Posted 2012) [#1]
Is there any way to add a cube to a mesh faster than using AddMesh()?
It needs to add the surfaces (6 of them) too.

I tried adding the Vertexes and Triangles myself, but ended up with something that was far slower than AddMesh for some reason...


AdamRedwoods(Posted 2012) [#2]
not unless you work with the arrays directly, meaning you would have to append to the destination array element by element for each vertex.

Meanwhile, try copying the CreateCube() function, shouldn't be that slow to add cubes.