summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-13 21:20:17 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-13 21:20:17 +0200
commite1ae8881918415ef13fdea7c7087d01d873ad07a (patch)
treedd248f9dad12f891934ccd03ee85afb1966014ff /src
parent07bbf7bf7ef31d412f47363b7346ec890495a4fb (diff)
actually pre-sorting won't speed it up
Diffstat (limited to 'src')
-rw-r--r--src/chunk-scenery.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/chunk-scenery.cpp b/src/chunk-scenery.cpp
index b17b2e2a..ad29a3d7 100644
--- a/src/chunk-scenery.cpp
+++ b/src/chunk-scenery.cpp
@@ -5,7 +5,6 @@
#include "tile-atlas.hpp"
#include <Corrade/Containers/ArrayViewStl.h>
#include <Magnum/GL/Buffer.h>
-#include <algorithm>
namespace floormat {
@@ -186,7 +185,6 @@ auto chunk::ensure_scenery_mesh(scenery_scratch_buffers buffers) noexcept -> sce
auto index = e->is_dynamic() ? (uint32_t)-1 : j++;
array[i++] = { e.get(), (uint32_t)-1, e->ordinal(), make_topo_sort_data(*e, index) };
}
- std::sort(array.begin(), array.begin() + size, [](const auto& a, const auto& b) { return a.ord < b.ord; });
topological_sort(array, size);
return { scenery_mesh, ArrayView<entity_draw_order>{array, size}, j };