Search Unity

[C# Tutorial] garbageless list for deep optimization of an event dispatcher

Discussion in 'Community Learning & Teaching' started by paskal007r, Oct 25, 2016.

  1. paskal007r


    Sep 6, 2013
    Garbage Collection is bad news in unity development. When the GC is triggered there's usually a drop in frame rate. To prevent that the only way is to avoid making garbage, but how can you do it when the basic memory structures will produce it on regular use?

    In this tutorial I optimize the event dispatcher I presented in previous tutorials by introducing a garbageless list to host event handlers.
    Enjoy the script!