Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

GUI Repaint GC Allocations

Discussion in 'Unity UI (uGUI) & TextMesh Pro' started by catfink, Sep 12, 2019.

  1. catfink

    catfink

    Joined:
    May 23, 2015
    Posts:
    129
    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?