Search Unity

  1. Unity 2020.2 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

LWRP 4.9.0 causing lags - GC.Collect

Discussion in 'Graphics Experimental Previews' started by kexar66, Feb 19, 2019.

  1. kexar66

    kexar66

    Joined:
    Feb 27, 2013
    Posts:
    40
    Hi,
    we have troubles with LWRP 4.9.0 in Unity 2018.3.5f1 - GC.Collect causing lag spikes every few seconds (random):
    profiler_graph.jpg profiler_hierarchy.jpg

    We tried also 3 older versions of LWRP and Unity but it did not help.

    Anyone can help?
     
  2. liiir1985

    liiir1985

    Joined:
    Jul 30, 2014
    Posts:
    147
    GC Alloc inside GetComponentFastPath only occurs inside Editor, won't appear in a standalone build. I've read about it in another thread that this allocation is nessessary in editor for some safety checks.
    and you can try turn on VSync or limit the framerate to decrease the frequency of GC.Collect in Editor if it troubles you
     
    chrismarch likes this.
unityunity