Instrument / oculus-bridge

A utility and javascript library to link the Oculus Rift with the web
MIT License
297 stars 50 forks source link

Oculus Bridge Cause Frames to drop and Crash #6

Open timotius02 opened 10 years ago

timotius02 commented 10 years ago

I was testing oculus bridge using it to manipulate orientation of Threejs objects. However, there were multiple times when The object would just freeze up and start to stutter or even stop moving completely. Is there any way I can fix this?

cmdr2 commented 10 years ago

I'm able to reproduce on my Mac OS X as well with a simple websockets demo. The orientation events work for about 2 minutes, after which it stutters to a stop. If I take my mouse cursor over my Mac dock (causing the open icons to animate), then the orientation events start working again for about 5 seconds and then stop. Taking it back on the dock again makes it work for about 5 seconds.

If I open the Oculus Bridge window at this point, then my orientation events restart working for another 2 minutes.

The problem appears to be reproduce faster when I context switch between unrelated applications.

I suspect it's a problem with the bridge process getting context switched out.