pixelpicosean / lesser-panda

[Deprecated] Module based HTML5 game engine
24 stars 5 forks source link

Compilation of large CollisionMap takes too much time to finish #14

Open pixelpicosean opened 8 years ago

pixelpicosean commented 8 years ago

The collision shape generation process is too slow when map size is large enough. It might be better to be an option instead of default map collision implementation. So developers can pick the default(tile based collision) or compile map into static bodies.

Static bodies does not require collision check and movement, so it can be optimized by adding into a static body list.

pixelpicosean commented 7 years ago

To solve this issue, collision shape compilation will be recommended to be only used in small levels(less tiles in total). Aka SAT based tilemap collision is not recommended any more. But this will change after engine reaches v1.0.0 and editor support added.