3 ms·
In my case, it's the throughput that was a problem; there was practically zero latency or cost of sending a message using node and WebSockets. I was considerin
by jjs 16y ago
In my case, it's the throughput that was a problem; there was practically zero latency or cost of sending a message using node and WebSockets.
I was considering doing some sort of curve-fitting to (lossily) compress the drawing commands. Sending a couple points to describe a quadratic or Bézier curve is a lot nicer than hundreds of points to describe tiny line segments.
And, as luck would have it, <canvas> draws both natively! :)