Search Unity

Drawcalls increase when camera moves

Discussion in 'General Graphics' started by pokruchin, Apr 23, 2020.

  1. pokruchin

    pokruchin

    Joined:
    Apr 24, 2019
    Posts:
    38
    Hello everybody! In my game I have a few connected terrains with a foliage (all trees and details are the same on all terrains). When camera isn't moving there are about 150 draw calls but when it starts moving this number increases to 400. After it stops the number is 150 again. Frame Debugger can't help because when I enable it the number is 150 even if I enable it when camera moves. The only thing I noticed is that if I turn off Draw trees and details objects or set Tree distance to 0 this problem disappears. This happen not only in editor but in actual build. Also you can see that number of tris also increases. And setpass calls increase too. I'd appreciate any help!

    What shows profiler when camera is not moving:


    And what shows profiler when camera is moving:
     
  2. pokruchin

    pokruchin

    Joined:
    Apr 24, 2019
    Posts:
    38
  3. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,076
    Does this problem still happen?
     
  4. pokruchin

    pokruchin

    Joined:
    Apr 24, 2019
    Posts:
    38
    I started to use speedtrees and the problem seems solved now. Actually this is a known bug which was fixed in 2019.3.12f1 if I remember right... but I got another issue there: billboards not facing camera when camera moves.
     
  5. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,076
    Do you have a snapshot or short vid of this problem?:eek: