DashedLineRenderer needs heap optimization

Issue #25 on hold
unique.ek repo owner created an issue

Currently allocates about 0.8kb of heap if the array size changes which is quite often.

Maybe we should move back to List's instead of Arrays and see if we can improve anything.

Or we can make the array as large as we expect it to be than null the values which are not needed. We can clear and resize array in fixed intervals. Instead of every frame.

Comments (2)

  1. unique.ek reporter

    List's usually perform worse or same in best case. Even if we define their size on creation.

    Using a bigger array + nulling obsolete entries was even slower than Lists.

    Marking as On Hold until we can find a better solution.

  2. Log in to comment