Search Unity

What impacts vfx compiling / importing time?

Discussion in 'Visual Effect Graph' started by alexandre-fiset, Mar 5, 2020.

  1. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    555
    We have a quite big HDRP project in the work and are now facing ~25 to 40 seconds compile / import time when working on even the simplest VFX.

    This is not happening in a small project and my machine has an i7 8700, 16 gb of ram and a GTX 1060 GPU.

    This has become a major pain point as the VFX graph triggers a recompiling as soon as the player starts, the game window is resized, the asset is saved or some values are changed.

    Any idea how we can make it as fast as it normally is?
     
  2. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    555
    Somehow I got it fixed. The steps:
    • Deleted the library and temp folders
    • Update Unity (from 2019.3.1 to 2019.3.3)
    • Reopened the project
    • Noticed the absymmal lag was still present
    • Saw some new debug error with the HDRP lit shader compilation
    • Right-clicked on the HDRP package in the project window
    • Reimported
    • Voilà
    The first 5 steps might not have been necessary after all.
     
    fffMalzbier likes this.
unityunity