Overhaul collision detection, such as with a quad tree #189
Labels
area: performance
Improving the speed of games.
difficult
This is a hard issue. You'll want to get a few smaller ones done before trying it.
status: accepting prs
Go ahead and send a pull request to resolve this issue!
Not a priority since collision detection is rarely a perf issue. In the future it would be nice to have this as an option.No, this is definitely a priority now!The physics engine is a very slow part of EightBittr games. Especially in games such as FullScreenMario and FullScreenPokemon that contain many objects, first figuring out the quadrants of every Thing each tick (!) and then running collisions against many takes up a lot of time.
I want to see how other JS game engines such as Phaser.js do this - do they use a quad tree or something else?
The text was updated successfully, but these errors were encountered: