diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-09-23 19:23:01 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-09-23 19:23:01 +0200 |
commit | b9e46ba7ee08268052660f2ff98ffc0f211e8c08 (patch) | |
tree | a086a8b01d6a89d17c18fab21eafc32b49c7a7ec | |
parent | 58e7afe1fef89fcbed2d8e3ff0502f97f811bf3a (diff) |
play with thread priorities
-rw-r--r-- | dinput/keybinding-worker.cpp | 2 | ||||
-rw-r--r-- | logic/tracker.h | 2 | ||||
-rw-r--r-- | pose-widget/pose-widget.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/dinput/keybinding-worker.cpp b/dinput/keybinding-worker.cpp index 042f01a5..dbe3d75e 100644 --- a/dinput/keybinding-worker.cpp +++ b/dinput/keybinding-worker.cpp @@ -77,7 +77,7 @@ bool KeybindingWorker::init() KeybindingWorker::KeybindingWorker() : dinkeyboard(nullptr), din(dinput_handle::make_di()) { if (init()) - start(); + start(QThread::HighPriority); } KeybindingWorker& KeybindingWorker::make() diff --git a/logic/tracker.h b/logic/tracker.h index b1ed4042..282b5c5b 100644 --- a/logic/tracker.h +++ b/logic/tracker.h @@ -104,7 +104,7 @@ public: ~Tracker(); void raw_and_mapped_pose(double* mapped, double* raw) const; - void start() { QThread::start(); } + void start() { QThread::start(QThread::HighPriority); } void center(); void set_toggle(bool value); diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp index c6cda293..e9d5b05e 100644 --- a/pose-widget/pose-widget.cpp +++ b/pose-widget/pose-widget.cpp @@ -50,7 +50,7 @@ void pose_widget::paintEvent(QPaintEvent* event) }); if (!xform.isRunning()) - xform.start(); + xform.start(QThread::LowPriority); } void pose_transform::run() |