1j01 / jspaint

🎨 Classic MS Paint, REVIVED + ✨Extras
https://jspaint.app/about
MIT License
7.17k stars 562 forks source link

delay while drawing #275

Open rave974 opened 2 years ago

rave974 commented 2 years ago

while drawing a line with the pen, the end of the line wich should be under the pen can't keep with the pen speed and remains behind while the pen is moving. this is a big drawback, cause the main purpose of mspaint is speed, it doesnt work as fast as mspaint when drawing.

lafoxxx92 commented 2 years ago

How fast do you draw the line or How slow What is your device/settings?

rave974 commented 2 years ago

the faster i move the pen, the more distance pixels remain behind. in mspaint the pixels follow the pen no matter the speed. how can i check my device settings? i dont know what you mean, im running in chromium browser

lafoxxx92 commented 2 years ago

Original mspaint had same issue. The faster you move the pen, the more data is being issued to the program, resulting in slower processing speed. Since JS code is executed in your browser (on your device), I'd suggest trying faster device.

1j01 commented 2 years ago

Unfortunately browsers limit the rate that mouse data is available. There's a relatively new event that's supposed to address this, pointerrawupdate, but in my testing I couldn't see any particular improvement. At least, it's not satisfyingly fast.