Optimized scene and terrain before random generation

Many changes implemented, I’ll talk about them later.