Would painting a solid colour (such as black) on unity terrain help performance?

Was wondering if painting terrain in areas that unseen to black or white, if it would help performance, sense that way, it is not drawing a more intricate texture?

PS HAPPY NEWYEAR!.. well almost… :slight_smile:

The main slowdown is probably triangle processing. Occlusion culling sounds like a great start, but you really want manual vertex culling. You might get a very small gain from discarding fragments which are known to be in a black area avoiding further texture and lighting computation. Unfortunately geometry shaders are not accessible, but culling triangles there doesn’t stop the vertex shader processing their vertices anyway.

I think your best bet is to split the terrain up into tiles and only draw the tiles which are not completely black. I’ll throw out a guess that unity doesn’t offer much of an interface for splitting up terrain. A good size for your tiles will probably be too small to bother creating manually, so maybe try to generate tiles at launch. Hopefully you won’t have to carve up the terrain maps and can simply generate terrain tiles which all point to the same texture data, just with different offsets.