-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked background loading and updating of chunks
Before there was a dedicated thread for loading and it was not great because map rendering requests were started from worker thread which is not potentially dangerous. Updates of map were done in main thread, blocking user interface - ugly! Now everything is handled more cleanly - there is one queue of jobs (two types: load chunk / update chunk), things are started asynchronously from main thread. No dedicated thread / mutex / wait condition. Better management of states of chunk nodes - state changes are very explicit which is a good thing.
- Loading branch information
Showing
18 changed files
with
645 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.