so i have a game in which there is a 64x64x64 cubes of cubes and i have some performance improvements like only rendering visible cubes i can post the script if necessary. The cubes are instantiated by a script prom a prefab. in the update() function for each cube it looks into a 3d array of integers and finds the value corresponding to it’s coordinates (no floats) and then performs if statements to change it’s material depending on the number. A modified 1st person controller from the 1 that comes with unity is used. but currently the game runs at 3 fps this is unacceptable. How can this be improved?? also just in case it is important i am using the free version of unity the publish mode set to win/mac executable. (on a windows 7)
Don’t make an object for each cube, use the Mesh class instead. There are plenty of Minecraft threads around that discuss this in more detail.
–Eric