summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-01 19:13:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-01 22:47:07 +0100
commit4c11e0be17ff1a96630ec2d787cc7f6bed56abc7 (patch)
treee6daa0a56eacb18e407187e5cdd9860cc4b24591
parent2f7f6e7dc580bf313b7f70143241bbd14d633cf7 (diff)
opentrack: only run pose display at 30 Hz
Running it at 60 Hz was using too much CPU time.
-rw-r--r--opentrack/main-window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp
index 71ab96f5..59a01e00 100644
--- a/opentrack/main-window.cpp
+++ b/opentrack/main-window.cpp
@@ -471,7 +471,7 @@ void main_window::start_tracker_()
options_widget->register_filter(&*work->libs.pFilter);
}
- pose_update_timer.start(15);
+ pose_update_timer.start(1000/30);
// NB check valid since SelectedLibraries ctor called
// trackers take care of layout state updates