From ee4806bfe8a29624f670f37334e3e382478325fc Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 11 Nov 2022 07:16:00 +0100 Subject: a --- loader/loader-impl.cpp | 4 ---- src/world.cpp | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/loader/loader-impl.cpp b/loader/loader-impl.cpp index 5d137eca..5798efcc 100644 --- a/loader/loader-impl.cpp +++ b/loader/loader-impl.cpp @@ -24,10 +24,6 @@ #pragma GCC diagnostic ignored "-Walloca" #endif -using StringView = Corrade::Containers::StringView; - -namespace Path = Corrade::Utility::Path; - namespace floormat { struct loader_impl final : loader_ diff --git a/src/world.cpp b/src/world.cpp index 49a2fdf9..b3b79095 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -52,6 +52,7 @@ void world::maybe_collect() void world::collect(bool force) { + const auto len0 = _chunks.size(); for (auto it = _chunks.begin(); it != _chunks.end(); (void)0) { const auto& [_, c] = *it; @@ -65,6 +66,9 @@ void world::collect(bool force) auto& [c, pos] = _last_chunk; c = nullptr; pos = chunk_tuple::invalid_coords; + const auto len = len0 - _chunks.size(); + if (len) + fm_debug("world: collected %zu/%zu chunks", len, len0); } } // namespace floormat -- cgit v1.2.3