Fast & Efficient Spawning with Object Pooling - Unity and C#
One Wheel Studio
Object pooling is one of those programming patterns that every game developer should be making use of in their project. Spawn objects faster and more efficiently. It can save memory and CPU cycles while preventing frustrating lag spikes for players. This video looks at using C# with Unity to create two different approaches to object pooling.
Object Pooling Blog Post: https://onewheelstudio.com/blog/2020/7/15/object-pooling Project Files: https://github.com/onewheelstudio/Programming-Patterns
Become A Channel Member: https://www.youtube.com/channel/UCkr9CPPqT9VWUjkpo3HcACg/join
Suggested Game Dev Reading: https://kit.co/onewheelstudio/game-design-reading-list-unity-c-blender-and-more My video and streaming kit: https://kit.co/onewheelstudio/tutorial-video-production
Discord: http://discord.onewheelstudio.com
Patreon: https://www.patreon.com/onewheelstudio
Twitter: https://twitter.com/OneWheelStudio
Devlog: https://onewheelstudio.com/
Twitch: https://go.twitch.tv/onewheelstudio
Timecodes What is Object Pooling? 0:00 Two Approaches 1:23 What is a Queue? 1:50 Object Pool Simple 2:40 Spawner Simple 4:57 Object Return Simple 5:54 Implement Simple 6:11 Why Second Approach? 6:57 Object Pool Advanced 7:43 Spawner Advanced 9:53 Return Advanced 10:16 Implement Advanced 10:24 Supporters!!! 10:59 Outtake 11:17
#UnityTutorial #GameDevelopment #programmingpatterns #objectpooling ... https://www.youtube.com/watch?v=wGgeCki1vC8
59369671 Bytes