I’m developing a Voxel Engine to make a cube world. I’m trying to accomplish this using the procedural mesh componenet.
So far I’ve only set up some code to build cubes (actually untextured and without any physics). You can such code here: http://pastebin.com/8jqThv8e (Psyrain is the name of the project, Voxine is the Voxel Engine)
By changing the values x,y and z have to reach in the loops I can change the number of blocks I generate. Unfortunately trying, for an exemple, 16x16x256 it gets terribly slow.
What’s the problem? Is the procedural mesh not ideal for what I want to make? And what should I use instead?
Is my code just bad written?
Is my computer a potato?
Thanks for the attention!