From f528908f599a7bc551923c681c6cbd5535c5e767 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 30 Aug 2023 18:38:03 +0200 Subject: shaders: move tuc stats timer to tuc --- editor/draw.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'editor') diff --git a/editor/draw.cpp b/editor/draw.cpp index 097a9deb..0b469380 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -12,7 +12,6 @@ #include "rotation.inl" #include "src/RTree-search.hpp" -#include #include #include #include @@ -195,18 +194,7 @@ void app::draw() draw_ui(); render_menu(); - using namespace std::chrono_literals; - { - constexpr auto print_every = 4s; - - static auto t0 = std::chrono::high_resolution_clock::now(); - auto t = std::chrono::high_resolution_clock::now(); - if (t - t0 >= print_every) - { - t0 = t; - M->texture_unit_cache().output_stats(); - } - } + M->texture_unit_cache().output_stats(); } clickable* app::find_clickable_scenery(const Optional& pixel) -- cgit v1.2.3