Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411482 Posts in 69370 Topics- by 58426 Members - Latest Member: shelton786

April 24, 2024, 12:27:22 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Pool manager for Unity3d
Pages: [1]
Print
Author Topic: Pool manager for Unity3d  (Read 868 times)
pixeye
Level 1
*


You have my mace


View Profile WWW
« on: November 07, 2017, 09:38:25 PM »

Hi guys! I've made recently a handy pool manager for unity3d. Sharing.  Gentleman

An ultra fast and lightweight object pool manager with zero allocations and customizable prepopulate feature. You can group uploading objects in chunks and set how many frames you need for uploading to reduce allocation spikes. Uses Unirx extension and based on object instance ids. You can pool prefabs without any extra components and can mix different prefab types in one pool.

Github
Logged

bateleur
Level 10
*****



View Profile
« Reply #1 on: November 08, 2017, 10:09:01 AM »

Nice work. I like that the IPoolable interface provides some scope for script support, which most Unity pool managers fail to do.

Still a little awkward when using third party libraries involving scripts, but that's a horrible case to handle, so entirely excusable.
Logged

BusinessDogStudio
Level 0
**


View Profile WWW
« Reply #2 on: November 16, 2017, 09:32:28 PM »

That looks like a really clean and simple implementation, I like it! Wish I'd had this around when I was starting work on my current game, I ended up rolling my own object pooling system which ended up being quite a bit messier than this. Thanks for sharing!
Logged

Rain of Arrows - A virtual reality archery game!
http://businessdogstudio.com
https://twitter.com/BusinessDogStud
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic