summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-29 09:36:34 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-29 09:39:11 +0100
commitf70410132b161332e164d013e6a7963c10d823ce (patch)
treeb5dae1b108cefc40755715a413f50473aa814ec4 /main
parent531c86fea3275214b37f50a2a44f8c0bd258156f (diff)
{main,src}: only output jank debug info on verbose log
Diffstat (limited to 'main')
-rw-r--r--main/draw.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index 1de1bd50..c7ca97f3 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -5,6 +5,7 @@
#include "src/anim-atlas.hpp"
#include "main/clickable.hpp"
#include "src/light.hpp"
+#include "src/log.hpp"
#include <Corrade/Containers/GrowableArray.h>
#include <Corrade/Containers/ArrayView.h>
#include <Magnum/GL/DefaultFramebuffer.h>
@@ -250,7 +251,7 @@ void main_impl::do_update()
#endif
}
#ifndef FM_NO_DEBUG
- else if (dt_expected.has_focus && dt_expected.do_sleep) [[unlikely]]
+ else if (dt_expected.has_focus && dt_expected.do_sleep && is_log_verbose()) [[unlikely]]
{
if (good_frames)
{