From 3ac2fb62b67b6446ab31b2455a4cb74069f1c54f Mon Sep 17 00:00:00 2001 From: dusoleil Date: Sun, 18 Sep 2022 07:45:13 -0400 Subject: 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. --- project.godot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'project.godot') 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" -- cgit v1.2.3