- Home /
Terrain Trees: Draw calls triples when FPS camera rotates?
Hi. I'm quite new in unity and I just want to know if what I'm experiencing is normal.
I have a terrain, painted a few terrain trees and deployed my FPS character. I have 40-50 draw calls when character is idle or moving (WASD) but when I try to rotate (MouseX/Y) draw calls go up to 150. But it goes back to 40 as soon as rotation stopped.
Does this relate to tree billboarding? Do they get rendered first before they are billboarded?
BTW verts count also increases from 10k to 40k. Even if I just have a handful of 100-vert trees? :/
Your comments are greatly appreciated.
After some experiments... I found out that unity somehow allocates a single up to a few draw calls for EVERY kind of tree added in the terrain inspector. Even if some of those trees are not painted in the terrain... and these invisible draw calls are done only when the camera rotates (no additional draw calls during translation)
In my case, as the camera rotates... I have 8 different trees which takes up 11 drawcalls ( 8 low-poly 1 draw call each and 1 high-poly, 3 draw calls). and I have 9 terrain tiles... which sums up to 99 draw calls plus the actual draw calls.
I'm guessing that this is Unity's way of optimizing its Terrain System. Is there a way to achieve 360-camera-axes-rotation without too much overhead in draw calls?
Also, these are just my blind assumptions. Can anybody verify if my findings are valid. :)
Your answer
Follow this Question
Related Questions
How to make camera position relative to a specific target. 1 Answer
How to hide Unity terrain trees when they are blocking the camera view? 0 Answers
Trees further away from the camera are not rendering properly. need help.. 1 Answer
how to prevent fpc camera passing through trees? 1 Answer
Help with multi-purpose replacement shader for camera 1 Answer