History

Since the bucky balls are showing up in the hot spots list when profiling, don't simulate them if they're disabled.

Andrzej Kapolka committed 12 years ago

Commit bf9929e1 parent 5bfe2c21 file · +4 −2Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+4−2
@@ -1241,8 +1241,10 @@ void Application::idle() { · 1240 unmodified lines
1241 _idleLoopStdev.reset();1241 _idleLoopStdev.reset();
1242 }1242 }
1243 1243
1244 _buckyBalls.simulate(timeSinceLastUpdate / 1000.f, Application::getInstance()->getAvatar()->getHandData());1244 if (Menu::getInstance()->isOptionChecked(MenuOption::BuckyBalls)) {
1245 1245 _buckyBalls.simulate(timeSinceLastUpdate / 1000.f, Application::getInstance()->getAvatar()->getHandData());
1246 }
1247
1246 // After finishing all of the above work, restart the idle timer, allowing 2ms to process events.1248 // After finishing all of the above work, restart the idle timer, allowing 2ms to process events.
1247 idleTimer->start(2);1249 idleTimer->start(2);
1248 }1250 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t