200+ bullets, 60fps on an old mobile - here's some code!

Screenshot 2020-10-08 at 20.33.10.png

 https://hastebin.com/uqewizixop.csharp

Since the jam I've added comments and removed some unnecessary allocations, but otherwise it was all jam code (so expect a few questionable choices :wink:)

This is not something you'll be able to just drop into your own project, it uses a few tools like an object pooler that I wrote a while ago. It should provide a decent reference though, and some general optimisation tips! Feel free to ask any questions :grin:

Don't forget to play the jam entry!!

ezgif.com-gif-maker.gif