More Info: With _merger.applyToContainer() at the end of the loop, it takes 53 seconds and uses 500mb of ram.(Also creates a huge amount of polys and doesn't show the map correctly (the cubes are too far from eachother)).
With _merger.apply() to the *same mesh* at each iteration, it takes 52 seconds and uses nearly the same mb of ram. (also creates the same amount of polys and distorts the map (as explained in the previous post)). With _merger.apply() to a mesh per *type of cube* (or per material if you prefer) and also at each iteration, it takes around 250ms and uses only around 15-20 mb of ram. (and just creates 9000 polys and the map shows perfectly). So, as you can see, it looks like there is a problem with merging meshes of different materials. I'll keep investigating. If you need more information, just ask, and i'll be glad to help to solve this. Note: I've used the same code i've posted a few posts above. Thanks
