diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-29 17:03:35 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-29 17:03:35 +0200 |
commit | 3bafa1a136eeb80f3ce1460ccbf992f656753742 (patch) | |
tree | 9d05fbdccad0d8baefcdaf789f1bea0045d979ae /main/draw.cpp | |
parent | 9813d9263e0b45f46b90579ea217117da823dad7 (diff) |
more unicode silliness
Diffstat (limited to 'main/draw.cpp')
-rw-r--r-- | main/draw.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/draw.cpp b/main/draw.cpp index fdd07c41..8d3cfcda 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -141,9 +141,9 @@ void main_impl::drawEvent() if (dt_expected.do_sleep) { - constexpr float eps = 1e-3f; + constexpr float ε = 1e-3f; const float Δt൦ = timeline.currentFrameDuration(), sleep_secs = dt_expected.value - Δt൦ - dt_expected.jitter; - if (sleep_secs > eps) + if (sleep_secs > ε) std::this_thread::sleep_for(std::chrono::nanoseconds((long long)(sleep_secs * 1e9f))); //fm_debug("jitter:%.1f sleep:%.0f", dt_expected.jitter*1000, sleep_secs*1000); const float Δt = timeline.currentFrameDuration() - dt_expected.value; |