From 08c16beff26e4eb93b10a7d459309606fa4c389a Mon Sep 17 00:00:00 2001 From: "Anthony J. Thibault" Date: Thu, 25 Feb 2016 18:17:42 -0800 Subject: [PATCH] Application: re-worded presentCount comments --- interface/src/Application.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index e74e842f9d..caff5e7e46 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -2455,16 +2455,16 @@ void Application::idle(uint64_t now) { _renderedFrameIndex = INVALID_FRAME; } - // Don't saturate the main thread with rendering, no paint calls until the last one is complete - // Also no paint calls until the display plugin has increased by at least one frame - // (don't render at 90fps if the display plugin only goes at 60) + // Don't saturate the main thread with rendering and simulation, + // unless display plugin has increased by at least one frame if (_renderedFrameIndex == INVALID_FRAME || presentCount > _renderedFrameIndex) { // Record what present frame we're on _renderedFrameIndex = presentCount; - // But when we DO request a paint, get to it as soon as possible: high priority + // request a paint, get to it as soon as possible: high priority postEvent(this, new QEvent(static_cast(Paint)), Qt::HighEventPriority); } else { + // there's no use in simulating or rendering faster then the present rate. return; }