summaryrefslogtreecommitdiffhomepage
path: root/editor/update.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-04 13:59:58 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-04 13:59:58 +0100
commit295597008e0464f57eb52f51dc5d91ecb4e20cde (patch)
tree265298ead59fcfc7590ed66aa538fdeb068d8f5d /editor/update.cpp
parente5659516ff0df4462d1e07308152cd1ebbedf182 (diff)
src/world: remove automatic garbage collection
It should be run in the update loop.
Diffstat (limited to 'editor/update.cpp')
-rw-r--r--editor/update.cpp4
1 files changed, 3 insertions, 1 deletions
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