UnityPatterns / ObjectPool

Instead of creating and destroying new objects all the time, this script reduces garbage by pooling instances, allowing you to seemingly create hundreds of new objects while only actually using a recycled few.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unlikely that using list as queue is more performant than iterating list

lastobelus opened this issue · comments

Have you benchmarked using List as a queue vs. iterating the list to find an inactive GameObject? I'd be willing to make a considerable bet that iterating costs much less for typical pool sizes.

++ 10086