edemaine / cocreate

Cocreate Shared Whiteboard/Drawing
MIT License
209 stars 27 forks source link

Lag with iPads #158

Closed agrebe closed 3 years ago

agrebe commented 3 years ago

Both we and some students have noticed that there can be a substantial lag on iPads, that makes it difficult to write on them in real time. In particular, curved lines are hard to draw unless one goes very slowly, and operations take longer in general. These problems arise on both Safari and Chrome on an iPad. In contrast, on a USB tablet, the software works great and is very fast. It is similarly fast when connecting an iPad to a Mac using Sidecar; only when using the iPad as a standalone device is there substantial lag. Is this a known issue and is there a way to solve this problem, e.g. some setting on the iPad browser that needs changing? Thanks! Anthony Grebe & Prof. Iain Stewart

edemaine commented 3 years ago

I've heard some reports of this on older iPads, but it's difficult for me to track down (especially as I don't own an iPad, old or new). I hear that Cocreate works well/better on newer iPads.

One query: which version of iOS are you/they using? Upgrade to the latest if possible, and let me know whether that helps. It would also be helpful to know which models of iPads exhibit the problem. (Perhaps I can get one to test.)

In general, Cocreate doesn't run very well on Safari (sadly Safari is old and not well maintained), and on iOS devices you can't run anything but Safari. (Chrome exists, but it's using the Safari engine internally.) So there aren't a lot of alternatives on an iPad, and I'm not sure what to fix it on the Cocreate side (if it's even possible).

agrebe commented 3 years ago

Thank you for your quick reply, and sorry that it took me a while to get back to you.

That's unfortunate that iPads are restricted to the Safari engine even when running Chrome.

eltoroit commented 3 years ago

In case this helps... I am also running on an iPad and the performance is not as good as other whiteboard tools I have been testing (for example: https://wbo.ophir.dev/boards/etertrt).

The performance is horrible slow when drawing a continuously long freehand line. I am using chrome on an iPad Pro (11-inch) with iPadOS 14.4.1

psvenk commented 3 years ago

I'm not sure if this is the same issue as what was reported here, but there is a WebKit bug which causes some strokes not to be registered; disabling the "Scribble" feature works around this bug. More info: https://github.com/H-M-H/Weylus/issues/44

edemaine commented 3 years ago

I acquired an iPad for testing, and it seems that the issue was indeed the Scribble feature. I found this simple workaround and it seems to have fixed everything (even with Scribble enabled). So Cocreate seems to work well on iPads now (at least, on the iPad Air 4 I'm testing) [or it will in about an hour once the deploy finishes].