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. --- ChunkedCSGMesh.gd | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ChunkedCSGMesh.gd (limited to 'ChunkedCSGMesh.gd') diff --git a/ChunkedCSGMesh.gd b/ChunkedCSGMesh.gd new file mode 100644 index 0000000..2b8c6db --- /dev/null +++ b/ChunkedCSGMesh.gd @@ -0,0 +1,6 @@ +extends CSGMesh + +export(Mesh) var _mesh + +func _ready(): + self.mesh = _mesh -- cgit v1.2.3