ivan wrote: ↑Thu Sep 19, 2019 6:21 amPhysics and collisions are almost never a bottleneck in my games, 99% of the time it's love.draw or when I'm blatantly misusing another library.I'm migrating from the Bump and HC collision detection libs. (they are a bottle neck in my project. they take ~40% of CPU)
I use some Pie Profiler... I suppose it might alter the real results.
Also the profiler uses love2 GFX extensively.
I might misused the brilliant libs Bump and HC which I personally recommend to everyone.
My main problem that our project needed a 3D collision detection. So I had to add extra checks for another dimension.
Now I made some funcs to check all collisions of combinations of dimensions I need.
Our game has not much entities. I even split enemy batches. So the simple approach looks more clean and
the main thing:
It doesn't use extra RAM and GC calls.
I wish I started with Box2D.