From 4928517e27bf261d667eaa4417cecef0a04b3609 Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Sat, 16 Nov 2019 22:43:27 +0100 Subject: Selectively disable motion event compression for specific tools It was globally disabled in ab71599ea1af1ea5042e35502e9aa722cc4ab51e However most of the time we do not care for intermediate motion events, and forcing to process them only causes unnecessary performance overhead. --- src/ui/tools/calligraphic-tool.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui/tools/calligraphic-tool.cpp') diff --git a/src/ui/tools/calligraphic-tool.cpp b/src/ui/tools/calligraphic-tool.cpp index ac9db6f0d..c7c1c3aa3 100644 --- a/src/ui/tools/calligraphic-tool.cpp +++ b/src/ui/tools/calligraphic-tool.cpp @@ -471,6 +471,7 @@ bool CalligraphicTool::root_handler(GdkEvent* event) { ret = TRUE; desktop->canvas->forceFullRedrawAfterInterruptions(3); + set_high_motion_precision(); this->is_drawing = true; this->just_started_drawing = true; } @@ -729,6 +730,7 @@ bool CalligraphicTool::root_handler(GdkEvent* event) { sp_canvas_item_ungrab(SP_CANVAS_ITEM(desktop->acetate)); desktop->canvas->endForcedFullRedraws(); + set_high_motion_precision(false); this->is_drawing = false; if (this->dragging && event->button.button == 1 && !this->space_panning) { -- cgit v1.2.3