Saved 10% of sketch draw time by simply doing the transformation calculations in-place rather than calling surveyCoordsToViewCoords. I'd prefer a transform class that modifies one but the Coord2D class is final
Saved another 10% by only setting the paint colour when necessary. In a later PR I intend to create enough member Paint objects such that we never need to modify the current one
Pulling setAlpha outside of the loop also gave noticeable time savings
surveyCoordsToViewCoords
. I'd prefer a transform class that modifies one but theCoord2D
class isfinal
Paint
objects such that we never need to modify the current onesetAlpha
outside of the loop also gave noticeable time savings