edemaine / cocreate

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

Throttling #91

Closed edemaine closed 3 years ago

edemaine commented 3 years ago

I think we should cap all drawing methods to 30fps (33ms), rather than our current approach where pen tool has no throttling and other tools throttle to match server. The latter throttling has a terrible experience when the server gets laggy (can no longer usefully draw with those tools), and the former seems to be harming the server (maybe from displays that can poll really fast). For pen updates we'll want to coallesce the append operations into one; the others can just replace with last update.

We might want to store timing data on the pen strokes for later smoothing? Or would we do that locally anyway?