Skip to content

Instantly share code, notes, and snippets.

View wrh's full-sized avatar

Wendelin Reich wrh

View GitHub Profile
@wrh
wrh / ObjectPool.cs
Created November 6, 2013 19:13
Three kinds of generic object pools to avoid memory deallocations in Unity-based games. Released under a Creative Commons Attribution (CC BY) License, see http://creativecommons.org/licenses/ (c) 2013 Wendelin Reich.
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
////
//// Three kinds of generic object pools to avoid memory deallocations
//// in Unity-based games. See my Gamasutra articles.
//// Released under a Creative Commons Attribution (CC BY) License,
//// see http://creativecommons.org/licenses/
////
//// (c) 2013 Wendelin Reich.
////