diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-09-18 07:45:13 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-09-18 07:45:13 -0400 |
commit | 3ac2fb62b67b6446ab31b2455a4cb74069f1c54f (patch) | |
tree | 4764fa39466d7fd0d4ac9133e5a237dd1576a487 /project.godot | |
parent | 5923cd97dfafd7fee2784a91e81d7d55ed28448e (diff) | |
download | godot_wildjam_49-3ac2fb62b67b6446ab31b2455a4cb74069f1c54f.tar.gz godot_wildjam_49-3ac2fb62b67b6446ab31b2455a4cb74069f1c54f.zip |
Add ChunkLoader to World Generation
Break up world gen into chunk and offload generating them to a Chunk Loader.
The World figures out which chunks should be loaded and gives this to the Chunk Loader.
The Chunk Loader frees any chunks out of render distance.
It also picks an unloaded chunk and gives it to a worker thread to generate it.
Diffstat (limited to 'project.godot')
-rw-r--r-- | project.godot | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/project.godot b/project.godot index 34e666b..a22cfe0 100644 --- a/project.godot +++ b/project.godot @@ -27,7 +27,8 @@ config/icon="res://icon.png" [autoload] Settings="*res://singletons/settings.gd" -WorldGenRNG="*res://WorldGenRNG.gd" +ChunkLoader="*res://ChunkLoader.gd" +ChunkGen="*res://ChunkGen.gd" [display] @@ -121,5 +122,6 @@ common/enable_pause_aware_picking=true [rendering] +threads/thread_model=2 quality/filters/msaa=3 environment/default_environment="res://default_env.tres" |