From 506e5cfa93e735bbbc7a54f0a13e52d96985cfb6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 26 Feb 2023 21:14:26 +0100 Subject: src/world: collect empty chunks once per iteration --- src/world.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/world.cpp') diff --git a/src/world.cpp b/src/world.cpp index a95cdd21..20805905 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -14,7 +14,6 @@ world::world(std::size_t capacity) : _chunks{capacity, hasher} chunk& world::operator[](chunk_coords coord) noexcept { - maybe_collect(); auto& [c, coord2] = _last_chunk; if (coord != coord2) c = &_chunks.try_emplace(coord).first->second; -- cgit v1.2.3