Closed Codrin-Popa closed 6 years ago
Now that I'm thinking about it, memory is cheap and we only keep one copy of these maps. Why not got back to a matrix? I'm sure we can easily find efficient n-dimensional matrices that is effective for both speed and lookup.
~Testing on lab machines, this seems to fix #176~
There's still a performance issue with the large area at the end, FPS on a lab machine pc went from 60 -> 30.
Poke @AnthonyWharton
@RcColes, @jnterry or @grant-m-s if I could get another one so I can begin dev on windows?
Optimisations for when we load many spikes and disco balls: -> load textures and meshes just once
Algorithmic optimisations for when we have a high number of tiles: -> using a hash_map instead of a normal map, which is implemented as a binary tree