Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Draw()
- {
- lock(hmd_locker)
- {
- lock(renderPose_locker)
- {
- lock(eyeTexture_locker)
- {
- try(new TimeoutException(500) ) // tries to run it for 500ms then throws TimeoutException
- {
- hmd.EndFrame(renderPose, eyeTexture);
- }
- catch(TimeoutException ex)
- {
- LOG("hmd.EndFrame took longer than expected (500ms), skipping!");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement