janfic / epochsapart

0 stars 0 forks source link

Chunk Loading Optimizations #14

Closed janfic closed 2 years ago

janfic commented 2 years ago

Moving throughout the world loads new new chunks. This makes visible lag sometimes depending on chunk size and amount.

Perhaps a seperate thread can be used to load chunks. Unsure if this is possible in an ECS engine environment. Look into it.

janfic commented 2 years ago

Separate threads are possible but act oddly. A compromise has been made by limiting the amount of tiles processed per frame. This number will stay relatively low anyway, but limiting it after world gen prevents a large lag / pause in loading, but has the affect of "loading" visually to the player.