diff options
-rw-r--r-- | main/debug.cpp | 2 | ||||
-rw-r--r-- | main/main.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
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); } |