summaryrefslogtreecommitdiffhomepage
path: root/pose-widget
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-04-17 16:38:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-04-17 16:38:22 +0200
commit35978072c44f5ec84417da43904e7dad879fc5a4 (patch)
treed5c98f64eb19796d802d53cd4820bb2b4d17d246 /pose-widget
parent5b286bc5595196637d60e63ffea106ce73c1aa7c (diff)
few widgets: use repaint() for no event loop overhead
The Qt event loop overhead formed a decent amount of total CPU usage. `repaint()' is a direct call.
Diffstat (limited to 'pose-widget')
-rw-r--r--pose-widget/pose-widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp
index 8caf65b7..8f4c4a1b 100644
--- a/pose-widget/pose-widget.cpp
+++ b/pose-widget/pose-widget.cpp
@@ -86,7 +86,7 @@ void pose_widget::rotate_async(double xAngle, double yAngle, double zAngle, doub
bool expected = true;
if (xform.fresh.compare_exchange_weak(expected, false))
{
- update();
+ repaint();
xform.rotate_async(xAngle, yAngle, zAngle, x, y, z);
}
}