Search Unity

Building process freezes on compiling shader variants when connected to accelerator

Discussion in 'Unity Accelerator' started by alexvector, Jan 22, 2021.

  1. alexvector

    alexvector

    Joined:
    Oct 9, 2019
    Posts:
    26
    The release notes for 2020.2.2f1 currently list this know issue:
    https://issuetracker.unity3d.com/is...shader-variants-when-connected-to-accelerator

    On our projet we get hit by this each time we have an important change that causes shaders to recompile.

    The build process will freeze and we have to start it over and over again until all shaders have been compiled and cached. Once the shaders are cached on the accelerator, every subsequent build process will run fine, even if the cache in the local Library folder is empty.

    Is there an ETA for a fix for this?
    Is there a workaround (apart of completely disabling the Accelerator) that we could apply in the mean time?

    Thanks
     
    RatherGood and Homere like this.
  2. shipping-tomas

    shipping-tomas

    Joined:
    Oct 14, 2020
    Posts:
    3
    Try setting
    Code (CSharp):
    1. "CacheMaxPending": 1,
    in unity-accelerator.cfg as a temporary workaround