Search Unity

EventSystem.Update() memory leak

Discussion in 'Scripting' started by Sghwarzengold, Nov 22, 2016.

  1. Sghwarzengold

    Sghwarzengold

    Joined:
    Jul 6, 2015
    Posts:
    13
    Hi everyone!

    During profiling my 2d game I found that some times (often, but not always, when player call next turn and many of game contexts update) EventSystem.Update() allocate from 0.5 to 10 mb. And I can't find the reason why it happens. I checked my handlers, OnMouse[X] methods. Even most of Update() methods of my classes. Also I use Moonsharp for Lua scripting, but I check it allocations but it happens independently.
    Can somebody suggest at least direction where I should look?

    Will be very appreciate for any help.