diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-30 18:38:03 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-30 18:40:16 +0200 |
commit | f528908f599a7bc551923c681c6cbd5535c5e767 (patch) | |
tree | c54b985606c15b431e3425da43d7a7fd0e9cef2b /editor/draw.cpp | |
parent | 4ad81e683a72337cd170ebef532ddaa08c2818e2 (diff) |
shaders: move tuc stats timer to tuc
Diffstat (limited to 'editor/draw.cpp')
-rw-r--r-- | editor/draw.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
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 <chrono> #include <Magnum/Math/Color.h> #include <Magnum/Math/Vector3.h> #include <Magnum/GL/Renderer.h> @@ -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<Vector2i>& pixel) |