From 295597008e0464f57eb52f51dc5d91ecb4e20cde Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 4 Feb 2024 13:59:58 +0100 Subject: src/world: remove automatic garbage collection It should be run in the update loop. --- editor/update.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/update.cpp b/editor/update.cpp index 6e6a18e7..05b12e51 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -246,6 +246,9 @@ auto app::get_z_bounds() -> z_bounds void app::update(float dt) { + //M->world().collect(); + M->world().collect(true); + update_cursor_tile(cursor.pixel); tests_pre_update(); apply_commands(*keys_); @@ -255,7 +258,6 @@ void app::update(float dt) clear_non_repeated_keys(); set_cursor(); tests_post_update(); - M->world().maybe_collect(); } } // namespace floormat -- cgit v1.2.3