From 9bc2a0767e15d4dde7fd6231b07882d6456af71e Mon Sep 17 00:00:00 2001 From: dusoleil Date: Mon, 19 Sep 2022 06:28:21 -0400 Subject: Use MultiMesh to dramatically increase performance of generated world --- world/World.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'world/World.gd') diff --git a/world/World.gd b/world/World.gd index af2ba6a..2c8d822 100644 --- a/world/World.gd +++ b/world/World.gd @@ -33,7 +33,7 @@ func _on_ChunkRenderClose_area_entered(area:Area): area.lod_update() func _on_ChunkRenderDistance_area_exited(area:Area): - area.queue_free() + ChunkLoader.free_chunk(chunk_coords(v2_coords(area.transform.origin))) func _on_ChunkRenderMid_area_exited(area:Area): area.lod = area.LOD.DISTANCE -- cgit v1.2.3