summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-30 11:04:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-10-30 11:04:25 +0100
commit1b9336782dbff5b24b90648d7cbf98e744ef75bb (patch)
treedf9be608bd03f7dd6a99a960962cb182e3abce97 /main
parent50392ec2dc793527c90df04a8cdb7f81e2368fd8 (diff)
fix fps counter with no vsync
Diffstat (limited to 'main')
-rw-r--r--main/draw.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index 9135ed23..b6ed0607 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -108,8 +108,8 @@ void main_impl::drawEvent()
float dt = timeline.previousFrameDuration();
if (dt > 0)
{
- const float RC1 = dt_expected.do_sleep ? 1.f : 1.f/15,
- RC2 = dt_expected.do_sleep ? 1.f/10 : 1.f/30;
+ const float RC1 = dt_expected.do_sleep ? 1.f : 1.f/10,
+ RC2 = dt_expected.do_sleep ? 1.f/10 : 1.f/15;
const float alpha1 = dt/(dt + RC1);
const float alpha2 = dt/(dt + RC2);