steveruizok / perfect-freehand

Draw perfect pressure-sensitive freehand lines.
https://perfectfreehand.com
MIT License
4.52k stars 159 forks source link

[Bug] Skipping Input Points #83

Open jianlong-liu opened 3 months ago

jianlong-liu commented 3 months ago

This appears to be the same issue as https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/1591. Nevermind, may be a different issue.

When I draw quickly (using stylus, touch, mouse, it doesn't matter), a lot of input points get skipped. I've turned on Settings > Developer Options > Pointer Location to show actual pointer trace. Red dots are the actual pointer location update events I think.

perfect-freehand1 perfect-freehand2 perfect-freehand3 perfect-freehand4

Here's a video (slowed down by factor of 10) that shows the skipping.

https://github.com/user-attachments/assets/b45d64cb-0353-41e6-b311-cd1453688794

This is on Android 10, Cromite (Chromium fork), on a Snapdragon SDM636. Same on Firefox. Same for Snapdragon 800. Things are fine once I move to higher-end CPUs.

Here's another website showing that it's not likely to be on the Chromium/Firefox end, as the drawn stroke follows the stylus path almost exactly.

draw-chat1 draw-chat2

Please let me know if I should file this somewhere else.