diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-17 16:38:22 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-17 16:38:22 +0200 |
commit | 35978072c44f5ec84417da43904e7dad879fc5a4 (patch) | |
tree | d5c98f64eb19796d802d53cd4820bb2b4d17d246 /pose-widget/pose-widget.cpp | |
parent | 5b286bc5595196637d60e63ffea106ce73c1aa7c (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/pose-widget.cpp')
-rw-r--r-- | pose-widget/pose-widget.cpp | 2 |
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); } } |