Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    48
    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.