[World Gen] Optimization #3

Closed
opened 2020-02-28 20:45:02 +00:00 by halotroop2288 · 1 comment
halotroop2288 commented 2020-02-28 20:45:02 +00:00 (Migrated from github.com)

Huge lag spikes happen whenever chunks are being loaded or unloaded. This may have something to do with the saving that is done every single time a chunk is unloaded.
A fix for this might be to check if the chunk has changed at all before trying to save it.

Huge lag spikes happen whenever chunks are being loaded or unloaded. This may have something to do with the saving that is done every single time a chunk is unloaded. A fix for this might be to check if the chunk has changed at all before trying to save it.
valoeghese commented 2020-02-29 07:47:50 +00:00 (Migrated from github.com)

The lag spikes are gone due to threading, but there is still some lag in the chunk vs player position updating, and having moderate-large areas of the world rendered at any one time causes game lag

The lag spikes are gone due to threading, but there is still some lag in the chunk vs player position updating, and having moderate-large areas of the world rendered at any one time causes game lag
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: halotroop/LiteCraft#3
There is no content yet.