summaryrefslogtreecommitdiffstats
path: root/world/World.gd
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-19 06:28:21 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-19 06:28:21 -0400
commit9bc2a0767e15d4dde7fd6231b07882d6456af71e (patch)
tree1cc9b88eadf86c7df16ed01418cf64d0c8b92d3b /world/World.gd
parent354287265bda1448935c05e76455cff18d57f5da (diff)
downloadgame_jam49-9bc2a0767e15d4dde7fd6231b07882d6456af71e.tar.gz
game_jam49-9bc2a0767e15d4dde7fd6231b07882d6456af71e.zip
Use MultiMesh to dramatically increase performance of generated world
Diffstat (limited to 'world/World.gd')
-rw-r--r--world/World.gd2
1 files changed, 1 insertions, 1 deletions
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