diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 11:37:39 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 11:37:39 +0200 |
commit | b7f1fbf93839b9d04b8932cd5bf5f1d593772246 (patch) | |
tree | f528343e63de504fdfa49eeb98a66333bbb7d0be | |
parent | 7d3cabeece4dc3ea596e70739b6bc278adfb3eac (diff) |
a
-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); } |