soulweaver91 / project-carrot

Project Carrot, an open source spiritual clone of the Jazz Jackrabbit 2 game engine
https://carrot.soulweaver.fi/
MIT License
38 stars 4 forks source link

Optimise new collision code #67

Open soulweaver91 opened 7 years ago

soulweaver91 commented 7 years ago

There's probably a bit of repetition in the various collision checks; this already causes slowness in the (admittedly already slower, but still) debug version when many enemies are present. Optimisation is in place sometime in the future.