playMaker

Author Topic: Pooling - best practices?[SOLVED]  (Read 1018 times)

nFighter

  • Beta Group
  • Full Member
  • *
  • Posts: 174
    • multiplayer adult fighting
Pooling - best practices?[SOLVED]
« on: March 07, 2020, 10:08:35 PM »
I'm going to instancing/deleting 20..30..40 UI prefabs to the scene. Should I considering pooling instead of simple create/deleting, is it really make sense? And if yes - what's the best pooling solution supporting by playmaker for now?
« Last Edit: March 09, 2020, 04:22:00 AM by jeanfabre »
indie developer of multiplayer adult fighting
http://nakedfighter3d.com

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Pooling - best practices?
« Reply #1 on: March 08, 2020, 01:39:27 AM »
Hi.
For simple pooling you can use the pooler pool on the ecosystem.

Something important to know is that when variables where changed on the fsm, they do not reset when reused.
also values changed on the components are not reset(color/scale/size etc)

So a good way is to reset variables/components @start or just before de-spawning

for more complex i use lean pool. it does not have build in actions.
But i do have playmaker support for it on my asset
https://hutonggames.com/playmakerforum/index.php?topic=19544.0
« Last Edit: March 08, 2020, 01:44:28 AM by djaydino »

nFighter

  • Beta Group
  • Full Member
  • *
  • Posts: 174
    • multiplayer adult fighting
Re: Pooling - best practices?
« Reply #2 on: March 08, 2020, 06:07:49 PM »
Oh, I see! Thanks a lot
indie developer of multiplayer adult fighting
http://nakedfighter3d.com