Optimize Rectangular Soft with Vc code
Closed, ResolvedPublic


Optimize current Scalar implementation to use vectorize Vc code.

vanyossi created this task.Jul 6 2018, 5:52 AM
vanyossi added a comment.EditedJul 6 2018, 6:07 AM

There seems to be a slight difference in the fading between scalar and vectorize. however tests does cannot detect it.

Current implementation is only 3x faster than Scalar
as currently the slowest operation is getting the values
from the dataCurve. Math is not very heavy on this mask

Vectorization code works exactly a scalar method, which
inherits some bugs from the original implementation.

- SoftRect does not generate a proper rect unless a very
particular curve is drawn. However the mask becomes very small

- Curve does not alter the mask as expected, ie. the same as
circular soft. instead it generates smaller squares.
vanyossi closed this task as Resolved.Sep 5 2018, 5:29 PM