Everyday Unity
1.18K subscribers
169 photos
61 videos
42 files
2.38K links
A game developer and tech lead in a top grossing company posting Unity, programming, and gamedev related stuff that I find interesting
Website: https://gamedev.center

Most used tags are:
#performance
#shader
#interview

Author: @alexmtr
Download Telegram
A Collection such as List, HashSet, Dictionary etc can be pooled and reused by using a CollectionPool.

In case you missed that Unity has added a built-in collection pool. Usage looks similar to ArrayPool<T> class in .NET.

https://docs.unity3d.com/2022.2/Documentation/ScriptReference/Pool.CollectionPool_2.html

#arraypool #collectionpool #optimization #memory
👍4