Spiral Beam Optimization


Who would've known this little fella gonna make the game laggy as hell on a  desktop PC?

I implemented this "Trail" beam by manually adding points and updating LineRenderer and TrailCollider. However, when the time slow is in effect there will be many more points created, and when the screen is full of these lasers it can end up a laggy mess. Thankfully I found a solution to add a threshold during point generation so that if the distance from this point to last point is too small, the point will not be created.

Get Project Salamander (Working Title)

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.