auduno / headtrackr

Javascript library for headtracking via webcam and WebRTC/getUserMedia
3.69k stars 504 forks source link

Using Web Workers to Minimize Application Delay with Head Tracker #32

Open sohaiba opened 9 years ago

sohaiba commented 9 years ago

Hi All, We are currently using the head tracker as part of a real time application which requires displaying time-sensitive images alongside head tracking. Although we are using timers to display these images, it seems to us that the head tracker execution is prioritized due to the single threaded nature of JavaScript, resulting in delays of fifty milliseconds more than the desired time interval for each image display. We cannot afford that kind of delay associated with timers so we are considering the use of web workers to help us achieve an illusion of multi threading and thus reduce these time delays. If anyone has used web workers to achieve a similar goal with head tracker, please let us know how it can be done and whether it has proved effective or not. Thank you.

gad2103 commented 9 years ago

I would be interested in this too +1. anyone out there?