zCache - Object Pooling

$9
Publisher Digital Software Publishing
File size 289.64kB
Number of files 27
Latest version 1.1.0
Latest release date 2023-02-07 09:32:23
First release date 2022-12-15 03:39:11
Supported Unity versions 2018.4.2 or higher

Avoid problems with micro-stutter or even a solid freeze during game-play by re-using effects, monsters, dynamic objects, projectiles and more -- object pooling is the approach of pooling needed elements by making sure that object instantiation and destruction (and memory freed via Garbage Collection) is minimized, as it causes read of resources (textures, materials, objects) from disk and the GC of high number of events can block the main CPU thread and causing frame-drops, and existing and recently used elements is recycled.


Don't know what elements that is used, how many elements that is used during gameplay or which ones it is that is causing frame-drops?


No worries - by piping all usage via the Object Pooling there will be run-time statistics of current and maximum usage, even if only limited pooling is set up.


Use the information of this to judge if any assets should be defined as pre-cached at the start of the scene to remove any possibility of stutter mid-play.


Full source is included.


Support forum: http://www.digitalsoftware.se/community/forum-9.html






Top Publisher Assets