Search Unity

GUI Repaint GC Allocations

Discussion in 'UGUI & TextMesh Pro' started by catfink, Sep 12, 2019.

  1. catfink

    catfink

    Joined:
    May 23, 2015
    Posts:
    176
    In all the tutorials I've looked at on the Unity pages not one appears to discuss the issue of GC allocations and how you go about reducing these. Right now the total GC allocations per frame for my UI is 1.1kb. I would like this to be far less but I can't find any guidance on what causes an allocation in the GUI Repaint or how I would go about reducing this GC overhead.

    Anyone got any clues as to what in a GUI layout causes GC allocations per frame?