
(Better) Object Pooling - I Didn't Like My Old Solution
Object pooling is an easy way to get a performance boost in Unity or any other game engine. Reusing objects is faster than constantly creating and destroying objects. This method requires no object pool manager, allows easy initialization, and most important allows objects to automatically return themselves to the pool. Using C#, interfaces, actions, and generics this solution is highly extendable and easy to use.
Object Pool Code On Github: https://github.com/onewheelstudio/Adventures-in-C-Sharp/tree/main/Object%20Pool%202
Generics Video: https://www.youtube.com/watch?v=6ED4Qo0Yi6o
Actions/Events Video: https://www.youtube.com/watch?v=UWMmib1RYFE
Want to support the Channel?
*******************************
Buy me a coffee: https://www.buymeacoffee.com/onewheelstudio
Shop the Unity Asset Store (affiliate): https://assetstore.unity.com/top-assets/top-paid?aid=1100lHSw
Become A Channel Member: https://www.youtube.com/channel/UCkr9CPPqT9VWUjkpo3HcACg/join
Or a Patron: https://www.patreon.com/onewheelstudio
My video and streaming kit: https://kit.co/onewheelstudio/tutorial-video-production
Buy a Game Design Book: https://kit.co/onewheelstudio/game-design-reading-list-unity-c-blender-and-more
Video Gear List (Amazon Affiliate)
***********************************
Sony A6100 Camera: https://amzn.to/32logXz
Sigma 16mm 1.4 Camera Lens: https://amzn.to/3KA4Wr4
GoXLR (audio interface): https://amzn.to/35dmr03
Shure SM7B Mic: https://amzn.to/3fNbV1E
Blue Mic Arm: https://amzn.to/3tHgwdQ
Neewer Light: https://amzn.to/3rD8eRv
Light Softbox: https://amzn.to/3GUaHgQ
Neewer RGB Light: https://amzn.to/3rCTQJ9
Other Links
************
Discord: http://discord.onewheelstudio.com
Twitter: https://twitter.com/OneWheelStudio
Devlog: https://onewheelstudio.com/
Twitch: https://go.twitch.tv/onewheelstudio
Timestamps
*************
0:00 Why?
0:48 What is Object Pooling?
1:18 Implementation
2:16 Interfaces
2:29 IPool
2:51 IPoolable
3:21 Object Pool Class
4:29 Constructors
4:51 Pull Function
5:47 Push Function
6:31 Pool Object
7:35 Pull Function Overloads
8:07 Using Pull & Push Actions
8:30 THE END
#GameDevelopment #Unity3D #indiedeveloper








![[2D 게임 개발 꿀팁 시리즈] 모바일 성능과 쓰로틀링](https://img.youtube.com/vi/z0bkXem0g7o/hqdefault.jpg)

![[2D 게임 개발 꿀팁 시리즈] 2D 게임에 3D 오브젝트 쉽게 사용하는 방법](https://img.youtube.com/vi/8ytJW1I6Agg/hqdefault.jpg)
![[2D 게임 개발 꿀팁 시리즈] 그림자 최적화로 60FPS](https://img.youtube.com/vi/L494gnEHr5A/hqdefault.jpg)
![[2D 게임 개발 꿀팁 시리즈] 메모리 절약 스프라이트 5가지](https://img.youtube.com/vi/-cxbULpRSXE/hqdefault.jpg)

![[2D 게임 개발 꿀팁 시리즈] Sprite Shape vs. Tilemap](https://img.youtube.com/vi/q5Yeif-jJ2I/hqdefault.jpg)
![[2D 게임 개발 꿀팁 시리즈] 2D 배칭 최적화](https://img.youtube.com/vi/zMMACezlItM/hqdefault.jpg)


![Cards: Tidy Up! [Demo Out Now]](https://img.youtube.com/vi/6DDIfmMYYFs/hqdefault.jpg)
![[2D 게임 개발 꿀팁 시리즈] 2D 배칭 조건](https://img.youtube.com/vi/5DstF95ojw0/hqdefault.jpg)






![[2D 게임 개발 꿀팁 시리즈] 2개의 2D 물리 시스템](https://img.youtube.com/vi/eqxd8YjgdEo/hqdefault.jpg)

![[2D 게임 개발 꿀팁 시리즈] 2D 게임 그림자 성능](https://img.youtube.com/vi/yMrlutMnhpc/hqdefault.jpg)

![[2D 게임 개발 꿀팁 시리즈] 성능과 재미 사이](https://img.youtube.com/vi/dE1PNUM40ag/hqdefault.jpg)










![[2D 게임 개발 꿀팁 시리즈] 물리를 바꾸면 FPS가 100배?](https://img.youtube.com/vi/uUU3wggbNtU/hqdefault.jpg)

![[2D 게임 개발 꿀팁 시리즈] 2D 배칭](https://img.youtube.com/vi/0HO_7fwC_6A/hqdefault.jpg)































![[2D 게임 개발 꿀팁 시리즈] Runtime Sprite Atlas](https://img.youtube.com/vi/ocFwQ4sogDo/hqdefault.jpg)



































































