Search Unity

Question about Static Batching

Discussion in 'Editor & General Support' started by khalidfathy, Sep 13, 2021.

  1. khalidfathy

    khalidfathy

    Joined:
    Mar 12, 2018
    Posts:
    6
    Here in my scene I am having 5 materials shared across all static objects in the scene. Average vert count per object is around 1000. Yet it is displaying "0 saved by batching".
    I am using Unity 2020.3.12f1 with HDRP10

    upload_2021-9-13_10-42-12.png
     
  2. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,461
    Saved By Batching only counts batches saved by Dynamic Batching. Static batching just lowers the overall batch count.

    Edit: apparently a false assumption on my part
     
    Last edited: Sep 13, 2021
    khalidfathy likes this.
  3. khalidfathy

    khalidfathy

    Joined:
    Mar 12, 2018
    Posts:
    6
    Oh, this clears everything. Thank you.
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,797
    No? That is absolutely wrong, unless something changed really recently.
     
  5. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,797
    Here dynamic batching is disabled, but "Saved by batching" is non-zero.
    upload_2021-9-13_17-56-25.png

    Here I also disabled static batching, which makes "Saved by batching" drop to 0, further proving that Static Batching does indeed count towards the "Saved by batching" stat.
    upload_2021-9-13_17-55-56.png
     
    khalidfathy likes this.
  6. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,797
  7. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,461
    Whoops ok I guess I made a wrong assumption then... Sorry about that one. Looks like I misremembered something.
     
    AcidArrow likes this.