From 3ea100e595e1483c7e1ea7b8fd8e8b77e9530fe3 Mon Sep 17 00:00:00 2001 From: Eric Johnston Date: Wed, 3 Jul 2013 15:33:18 -0700 Subject: [PATCH] Added safety checks to processEvents(), which was causing problems. Also narrowed the scope of the events processed. It can now be disabled in the interface by un-checking touch-look, which most people don't use yet. Also, the event processing time should be limited to 1 ms. --- interface/src/Application.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 088dd03e03..aa7019a0b0 100755 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -950,8 +950,12 @@ void Application::idle() { // NOTE - this is commented out for now - causing event processing issues reported by Philip and Ryan // birarda - July 3rd - - // processEvents(); + // Added some safety catches which will enable us to test this. + // ej - July 3rd + if (_touchLook->isChecked()) { + int maxTimeMS = 1; + processEvents(QEventLoop::ExcludeSocketNotifiers, maxTimeMS); + } update(1.0f / _fps);