Revision c955e6e...

Go back to digest for 2nd December 2012

Optimization in Office

Dmitry Kazakov committed changes in [calligra] /:

Highly optimized Displacement option for the Experiment PaintOp

This patch re-enables the Displacement option for the Experiment
PaintOp as was requested by Lukas. The new implementation has two
kinds of optimizations:
1) It updates big shapes (128+ pixes) using diffs of paths. It means
that the whole shape is not rendered every time. Only the changed
part of it is rendered. This gives up to 2 times better performance
for huge shapes of 2000+ px in size.
2) The path is incrementally simplified. That is the elements smaller
than 1% of the shape are truncated to a single line.

File Changes

Modified 4 files
  •   krita/image/kis_painter.cc
  •   krita/plugins/paintops/experiment/kis_experiment_paintop.cpp
  •   krita/plugins/paintops/experiment/kis_experiment_paintop.h
  •   krita/plugins/paintops/experiment/kis_experimentop_option.cpp
4 files changed in total