From bf9929e64d30840e5b013ce0a271ef243cda09af Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Tue, 11 Mar 2014 17:16:49 -0700 Subject: [PATCH] Since the bucky balls are showing up in the hot spots list when profiling, don't simulate them if they're disabled. --- interface/src/Application.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 032e849f0a..bff223e5e3 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1241,8 +1241,10 @@ void Application::idle() { _idleLoopStdev.reset(); } - _buckyBalls.simulate(timeSinceLastUpdate / 1000.f, Application::getInstance()->getAvatar()->getHandData()); - + if (Menu::getInstance()->isOptionChecked(MenuOption::BuckyBalls)) { + _buckyBalls.simulate(timeSinceLastUpdate / 1000.f, Application::getInstance()->getAvatar()->getHandData()); + } + // After finishing all of the above work, restart the idle timer, allowing 2ms to process events. idleTimer->start(2); }