summaryrefslogtreecommitdiffstats
path: root/project.godot
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-18 07:45:13 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-18 07:45:13 -0400
commit3ac2fb62b67b6446ab31b2455a4cb74069f1c54f (patch)
tree4764fa39466d7fd0d4ac9133e5a237dd1576a487 /project.godot
parent5923cd97dfafd7fee2784a91e81d7d55ed28448e (diff)
downloadgame_jam49-3ac2fb62b67b6446ab31b2455a4cb74069f1c54f.tar.gz
game_jam49-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.godot4
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"