Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Trees, terrain, high number of batches ?

Discussion in 'World Building' started by merfolkjh, Sep 24, 2022.

  1. merfolkjh

    merfolkjh

    Joined:
    Sep 18, 2021
    Posts:
    20
    Hi,

    I am trying to understand how I could improve my global fps.
    The context is "an empty terrain, with trees".

    I read you should keep batch count low, < 100 - 200 or so is recommended if i google... but

    On my project there is a sort of rules of thumb Nb BATCHES = visibles TREES * 3

    the 3 consuming steps are
    - Depth normal prepass

    4 visible Trees

    upload_2022-9-24_13-28-31.png

    = 4 draws here

    upload_2022-9-24_13-28-45.png


    Then

    draw opaque object : + 4draws (opaque objets = TRUNK)
    upload_2022-9-24_13-30-27.png


    Then draw transparentobject = +4 draws (transparent objects = leaf)



    -----------------

    With 14 trees, its the same

    upload_2022-9-24_13-36-9.png


    -----------

    or on a normal scene, i have 100 - 150 visible trees
    (they are 4 levels lod trees -- 2000 / 500 / 200 / culled triangles )

    upload_2022-9-24_13-39-35.png

    Whatever i do i Start with 500+ Batchs. From this.




    * Can anoyone help me to optimize ?
    * is this a "natural" situation, and nothing to be afraid about ? I still have "correct" FPS
    * is ~100 visible trees too much ? According to me it seems not exagerated, but i am not an expert.
    * When you see this "final" scene, do you see an aberration in stats or is it "fine" ?

    Thanks you !