Cleaning the Object Pool

For a little backstory:

I think I had about 60 bullets at one point, with only the most recently instantiated being used…

My Solution:

Only the current bullet is pooled.

--

--

--

Computer Science Student and Game Developer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

“Oh, You have a Coding Career!”

#Week 10 — Consolidation Week

Julia Speed Battle: Syntactual, Recursive, And Iterative Loops

What Is Dependency Injection?

Build a Collaborative Real-time Todo App Backend Using Hasura GraphQL

Which is the Best Hosting Website for e-Commerce Businesses?

Fast or Slow (FastOrSlow.com) Alternatives

Related Proxy Models

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aaron Grincewicz

Aaron Grincewicz

Computer Science Student and Game Developer.

More from Medium

Journal 152 — Unity Project Development, 2.5D Shooter

A Series On Creating Immersive Audio in Unity with Custom Wwise Scripts

Devlog 27 : Added IFrames To Dodging And CoolDown UI

RTS Interlude #4: Improving the healthbars (Unity/C#)