jongallant / Unity-Bullet-Hell

An extremely efficient projectile generator for unity.
MIT License
308 stars 40 forks source link

Initial optimizations #2

Closed MPozek closed 5 years ago

MPozek commented 5 years ago

I've made optimizations on some low bearing fruit:

This gave me about a 40% performance improvement on my machine, the biggest factor being the raycast call. In the initial attempt I made there were further optimizations done by not calling find on all emitters each frame. I wasn't satisfied with the solution proposed so I left it out here.