From b7f1fbf93839b9d04b8932cd5bf5f1d593772246 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 9 Oct 2022 11:37:39 +0200 Subject: a --- main/debug.cpp | 2 ++ main/main.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'main') diff --git a/main/debug.cpp b/main/debug.cpp index f9b48958..46340db8 100644 --- a/main/debug.cpp +++ b/main/debug.cpp @@ -50,8 +50,10 @@ void app::debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type type std::fflush(stdout); std::fputs("", stdout); // put breakpoint here +#if 0 if (severity != Severity::Notification) std::abort(); +#endif std::fputs("", stdout); // put breakpoint here } diff --git a/main/main.cpp b/main/main.cpp index cf03516b..c0e894be 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -36,7 +36,7 @@ void app::drawEvent() { //update_window_scale(windowSize()); { - float dt = timeline.previousFrameDuration(); + float dt = std::min(1.f/20, timeline.previousFrameDuration()); update(dt); } -- cgit v1.2.3