For long lines, the linear interpolation for the current position could overflow. This is the reason the length resolution is currently so small, which sets a limit on the minimum pen speed. This change introduces two 64-bit divisions, but allows for a larger length resolution and lower pen speeds. The runtime is still pretty minimal.
1 line
4 B
Text
1 line
4 B
Text
337
|