How do I get the sampling rate of a canvas element? -


i investigating preprocessing on-line handwriting recognition (see http://write-math.com). 1 interesting property of input devices sampling rate, means rate @ onmousemove , similar events.

i can record them , see time delta between 2 events varies 1.00 ms - 700.00 ms, in average 27.34 ms for recording.

(sampling rate measured in points / second. sampling rate enter image description here or average case enter image description here)

is there possibility information client directly? there devices sampling rate known? how javascript internally decide how fire events? can "event firing rate" increased / decreased?

mousemove firing rates particular browser stable on sufficient sample size, firing rate of individual mouse event affected non-canvas activities (garbage collection, background tasks, etc).

i don't know of browser allows adjustment of mousemove timing--all internally defined.

interesting project!


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -