Reimplement tablet event compression again
ClosedPublic

Authored by dkazakov on Apr 18 2016, 1:57 PM.

Details

Summary

Tablet device gives as quite a lot of events, which are not needed most of the time. Basically, the only tool that needs them is freehand painting tool.

This compression has been removed from the codebase while porting to Qt5. Now it should be recovered again.

How to test the patch:

  1. Try to use Shift+Gesture with your tablet. It should not make your computer almost hang-up when reaching the brush size around 100px
  2. Tablet support should not break in other places: brushes should work fine, including after switching applications, windows or tablet styluses.

The patch is also available in a git branch: kazakov-tablet-compression

Test Plan
Qt versionWindowsLinuxOSX
5.5.x?ok (Dmitry)?
5.6???

Diff Detail

Repository
R37 Krita
Lint
Lint Skipped
Unit
Unit Tests Skipped
dkazakov updated this revision to Diff 3401.Apr 18 2016, 1:57 PM
dkazakov retitled this revision from to Reimplement tablet event compression again.
dkazakov updated this object.
dkazakov edited the test plan for this revision. (Show Details)
dkazakov set the repository for this revision to R37 Krita.
Restricted Application added a subscriber: woltherav. · View Herald TranscriptApr 18 2016, 1:57 PM
dkazakov edited the test plan for this revision. (Show Details)Apr 18 2016, 1:58 PM
dkazakov updated this object.
dkazakov updated this object.
dkazakov updated this object.
dkazakov updated this revision to Diff 3402.Apr 18 2016, 2:42 PM

Modified a patch to compress mouse events as well!

scottpetrovic edited edge metadata.Apr 18 2016, 2:59 PM

I tested this patch on my windows machine (with a mouse) and it looks good to me.

abrahams edited edge metadata.Apr 18 2016, 4:46 PM

Works well with Windows (Qt 5.6) and a tablet. Cage transform is very usable.

abrahams accepted this revision.Apr 18 2016, 6:38 PM
abrahams edited edge metadata.

I don't think Mac support should block this. And I wouldn't expect Qt 5.6 on Linux to cause any problems since we implement our own input handler anyway.

This revision is now accepted and ready to land.Apr 18 2016, 6:38 PM
beelzy added a subscriber: beelzy.Apr 19 2016, 6:33 PM

Appears not to have problems on a Mac. However, there are some things that I can't test in a meaningful way because assistants are not visible on Macs yet. However, there is no slow down in changing brush size from using the tablet+gesture action or switching applications.

dkazakov closed this revision.Apr 20 2016, 8:18 AM

Thank you! Now the patch is in master! :)