kaplay
kaplay copied to clipboard
feat: add level baking for improving performance
Tile maps get slow quickly as their size increases. A solution would be to use a combination of baked levels and normal levels. A baked level does not contain individual objects. It draws its tiles in the most efficient way (which would probably be drawUVQuad currently, though a cached mesh would be better) and merges collision areas as much as it can to minimize the time to process collisions.