google / xrtl

Cross-platform Real-Time Rendering Library
Apache License 2.0
128 stars 26 forks source link

Changing the TimerDisplayLink to use a dedicated thread. #68

Closed benvanik closed 7 years ago

benvanik commented 7 years ago

This allows for better timing characteristics and removes the variance in timings due to using the MessageLoop for rendering.

Real apps could have their own threading setup and just do a sync call from the callback; the demos just draw right in that thread.