CosyClub / ProjectTempo

Rave Cave, A rhythm based MMO where players rock out together!
3 stars 0 forks source link

Cp/optimisations #173

Closed Codrin-Popa closed 6 years ago

Codrin-Popa commented 6 years ago

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

qqii commented 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.

qqii commented 6 years ago

~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.

qqii commented 6 years ago

Poke @AnthonyWharton

qqii commented 6 years ago

@RcColes, @jnterry or @grant-m-s if I could get another one so I can begin dev on windows?