Search Unity

Unity UI Performance drop with button transition (Color Tint)?

Discussion in 'UGUI & TextMesh Pro' started by _geo__, Aug 13, 2020.

  1. _geo__

    _geo__

    Joined:
    Feb 26, 2014
    Posts:
    1,347
    I have two buttons (uGui), one is using "Transition: None" the other "Transition: Color Tint".
    Now while profiling I noticed that the button with transitions causes some spikes, both in milliseconds and memory allocated.

    I am using URP 7.3.1, Unity 2019.4.1f1 and profiled on an Android 10 device (Nokia One Plus).

    Here is a composition of screenshots to illustrate what I am curious about.
    button-transitions-gc-allow-and-fps-drop.png

    More detailed profiler results (both with "deep profile" turned on and off).

    many-button-presses-on-transition-btn.png buttons-deep-profile.png buttons-shallow-profile.png

    Does anyone have experience with this? Is this to be expected?
    Thank you