Hi,
I am working on a cube world-type voxel game. I managed to generate chunks via PerlinNoise, but I got stuck when trying to save/load them using a text file. I looked all over the internet and through several games to see how they managed it, but I still don't understand it. This is my first game and I have not gotten much experience, but I now the basics of Unity.
Also, every time I try to play, I get intense lag. I have already multithreaded as much as I could, but it hasn't helped.
In my GenerateChunk method, I instantiate a square of voxels in a 16x16 square, then load in dirt and stone underneath that square.
I had to use mesh colliders to be able to place blocks manually, but even changing them to box colliders(rendering player block placement impossible) does not increase performance much.
Please tell me which snippets of code I need to upload!
Any help would be appreciated!
-Qo2770
↧