microsoft / HoloJS

Provides a framework for creating holographic apps using JavaScript and WebGL.
MIT License
1.19k stars 114 forks source link

Explicitly execute spatial input callbacks on the JS thread #40

Closed Almost-Done closed 7 years ago

Almost-Done commented 7 years ago

Explicitly request spatial input callbacks on the current thread at registration time.

In RS1, callbacks are delivered on random threads and the JS context is bound to the UI thread. In RS2, callbacks are already delivered on the same thread as registration, so this change is a no-op.