Vectorize the encoder using Vector3.
In the release mode tests, provides an 8-16x performance improvement (!).
Tests that were completing in 7-16 seconds now complete in 800-1000ms.
This also reduces precision of floating point operations from Double to Single.
A precalculated lookup table is used for SRGB to Linear conversion.
Vectorize the encoder using
Vector3
. In the release mode tests, provides an 8-16x performance improvement (!). Tests that were completing in 7-16 seconds now complete in 800-1000ms.This also reduces precision of floating point operations from
Double
toSingle
.A precalculated lookup table is used for SRGB to Linear conversion.