Search Unity

Bake performance drops quickly after multiple bakes.

Discussion in 'Global Illumination' started by McDev02, Oct 18, 2019.

  1. McDev02

    McDev02

    Joined:
    Nov 22, 2010
    Posts:
    664
    I encounter this issue a lot for a while already since Unity 2017 or even before that.
    Currently, I use the CPU based progressive light mapper. Here is what I did.

    1. Cleared GI cache.
    2. Bake the scene. The timer starts at 11:00 but quickly drops down to 4:xx and then counts down regularly. It took 336 seconds to bake.
    3. Bake another time (only adjusted Indirect intensity) Similar results, bake took 317 seconds.
    4. Again I only adjusted Albedo boost. This time the bake timer started at like 5:00, went down a little but after a few minutes it started rising. In the end it was at 9:xx and I quit.

    At the first bakes the baking performance was 8.99 mrays / sec and at the last bake this value shrunk more and more down to 2.00 before I closed it. I was afraid it would shrink even further.

    A second attmept brought the same result. With GI cache it rendered

    GI cache is set to 10GB and after all that 350MB were used.
    Clearing the cache seems to help but is this intended? Maybe I should try if disabling cache compression makes a difference.
     
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
  3. anhnguyen8122001

    anhnguyen8122001

    Joined:
    Aug 24, 2021
    Posts:
    1
    I encounter this issue again in 2020.3.10f1