A HUGE amount of draw calls from my Unity Terrain grass. What gives?

I’ve got an issue. Typically Unity Terrain grass batches quite nicely. However, my terrain is producing THOUSANDS of draw calls from a small clump of grass objects. Any ideas? I’m using RTP and the terrain is located inside a gameobject. Shouldn’t it be something around the 100 draw call mark? Pics below:


OK I fixed it! I’m gonna explain how for future reference by others.

  1. I had a more advanced water shader in the environment that was utilising a second camera with a far draw distance. That about halved the calls.

  2. I changed my detail patch resolution to 128 (bigger = less calls) and made the overall detail resolution of the terrain 128. Draw calls are around 100 now :slight_smile:

2 Likes

Good catches! I have found a large performance improvement in terrain overall by using the lowest heightmap resolution I can while still getting the detail I want.

PS - Those water systems also dynamically spawn those reflection cameras too, so it’s not always obvious to find them and troubleshoot!

In case someone sees this in the future

3 Likes

Second one is the best answer, it reduced my draw calls from 60 to 1 for grass. instead of drawing grass in multiple chunks, now it just draws it in one chunk. because it increased detail resolution patch all way up to 128 and detail resolution to 128 just bring me to 1 patch only…