Last week I worked hard to optimize the colorsmudge brush engine and make it faster. I have some progress here. According to my benchmarks, the colorsmudge brushes has become up to 20% faster!
Could you help me with testing the new implementation? I wonder if this new algorithm caused any regressions, artifacts or bugs that I didn’t notice during my initial testing…
- Try to paint with normal brush in “wash” mode with low opacity/flow values. There should be no artifacts visible
- Try to paint with ColorSmudge brush in the following modes:
- Smear Alpha is on/off
- Inherit Alpha is on/off
- Any selection is on/off
- Some color channels of the layer are off
Benchmarking results for 200px auto brush:
|old (ms)||new (ms)||speed increase (%)|
|Dulling, Smear Alpha||8212||6616||19.43%|
|Dulling, No Smear Alpha||6983||6600||5.48%|
|Smearing, Smear Alpha||6658||4875||26.78%|
|Smearing, No Smear Alpha||5604||4869||13.12%|
The patch should also make painting in 16-bit-integer RGB mode much faster, though I’m not sure how popular this mode is
More technical details about the new algorithm can be found in the original merge request.