diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-11 07:16:00 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-11 07:16:00 +0100 |
commit | ee4806bfe8a29624f670f37334e3e382478325fc (patch) | |
tree | a1bf3cbe5bf562dc1d31bdcc3bc6abe46e889bc5 | |
parent | ee1a527191db646850ee919b8fe3a6f8cb6cd693 (diff) |
a
-rw-r--r-- | loader/loader-impl.cpp | 4 | ||||
-rw-r--r-- | 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 |