summaryrefslogtreecommitdiffhomepage
path: root/src/world.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-26 21:14:26 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-26 21:14:26 +0100
commit506e5cfa93e735bbbc7a54f0a13e52d96985cfb6 (patch)
treec294522e3ebabe48f253c1973830be1a4ad3533f /src/world.cpp
parent988bf5d0368cb16846c02ea1482ea7b051ab97cb (diff)
src/world: collect empty chunks once per iteration
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp1
1 files changed, 0 insertions, 1 deletions
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;