summaryrefslogtreecommitdiffhomepage
path: root/main/draw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main/draw.cpp')
-rw-r--r--main/draw.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index 1a46d4f6..f388b60e 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -62,7 +62,6 @@ void main_impl::recalc_viewport(Vector2i fb_size, Vector2i win_size) noexcept
// -- user--
app.on_viewport_event(fb_size);
- update_collect_threshold();
}
global_coords main_impl::pixel_to_tile(Vector2d position) const noexcept
@@ -104,18 +103,6 @@ auto main_impl::get_draw_bounds() const noexcept -> draw_bounds
return {x0, x1, y0, y1};
}
-void main_impl::update_collect_threshold()
-{
- // todo remove it?
-#if 0
- const auto [minx, maxx, miny, maxy] = get_draw_bounds();
- const auto value = std::max(64uz, (size_t)(maxx-minx+4)*(size_t)(maxy-minx+4));
- if (!(GL::Context::current().configurationFlags() & GL::Implementation::ContextConfigurationFlag::QuietLog))
- fm_debug("collect threshold is now %zu", value);
- _world.set_collect_threshold(value);
-#endif
-}
-
void main_impl::draw_world() noexcept
{
const auto [z_min, z_max] = app.get_z_bounds();