I tried speeding up collision checks by first sorting all objects by their x position and then only checking for collisions on nearby objects. It's not perfect and still has some bugs but is already more than twice as fast than checking for collisions on every other object and quite simple
Created August 11, 2022
Last updated December 13, 2022