https://bugs.kde.org/show_bug.cgi?id=362445

Boudewijn Rempt <b...@valdyas.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|http://commits.kde.org/krit |http://commits.kde.org/krit
                   |a/23cbbf8b73cdd6c24a82ab70c |a/da5496d843237daefd214a784
                   |8269df2b69a4ef7             |9d2cad0f818b43b

--- Comment #15 from Boudewijn Rempt <b...@valdyas.org> ---
Git commit da5496d843237daefd214a7849d2cad0f818b43b by Boudewijn Rempt, on
behalf of Dmitry Kazakov.
Committed on 31/05/2016 at 07:35.
Pushed by rempt into branch 'krita/3.0'.

Fix "bended lines" stabilizer problem on Windows

The problem is that on Windows the tablet events are coming in bunches,
not uniformly. Therefore any timing-based smoothing system will not work
out of box.

This patch adds a special class KisStabilizedEventsSampler, that makes
the events uniform. It collects a set of events on a 50ms timeframe and
then distributes it uniformly.

The timeframe size should correlate with the maximum size of the delays
created by the events system. On Windows it is 50ms, on Linux 15-20ms.

The timeframe can be configured with "stabilizerSampleSize" config option.
Ref T2414
CC:kimages...@kde.org

M  +1    -0    libs/ui/CMakeLists.txt
M  +18   -1    libs/ui/kis_config.cc
M  +4    -0    libs/ui/kis_config.h
M  +6    -0    libs/ui/tests/CMakeLists.txt
A  +64   -0    libs/ui/tests/kis_stabilized_events_sampler_test.cpp    
[License: GPL (v2+)]
A  +31   -0    libs/ui/tests/kis_stabilized_events_sampler_test.h     [License:
GPL (v2+)]
A  +103  -0    libs/ui/tool/kis_stabilized_events_sampler.cpp     [License: GPL
(v2+)]
A  +90   -0    libs/ui/tool/kis_stabilized_events_sampler.h     [License: GPL
(v2+)]
M  +42   -28   libs/ui/tool/kis_tool_freehand_helper.cpp

http://commits.kde.org/krita/da5496d843237daefd214a7849d2cad0f818b43b

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to