summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-08-30 18:38:03 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-08-30 18:40:16 +0200
commitf528908f599a7bc551923c681c6cbd5535c5e767 (patch)
treec54b985606c15b431e3425da43d7a7fd0e9cef2b /editor
parent4ad81e683a72337cd170ebef532ddaa08c2818e2 (diff)
shaders: move tuc stats timer to tuc
Diffstat (limited to 'editor')
-rw-r--r--editor/draw.cpp14
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)