History

Merge branch 'master' of https://github.com/highfidelity/hifi into optimizeFindZones

Brad Hefta-Gaub committed 10 years ago

Commit b76f8502 parents 28978c8 f0cc8c039 files · +607 −297Browse files

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

Unified · Split

interface/src/Application.cpp+16−9
@@ -1489,11 +1489,15 @@ void Application::paintGL() { · 1488 unmodified lines
14891489 // FIXME not needed anymore?
14901490 _offscreenContext->makeCurrent();
14911491
1492− displayPlugin->updateHeadPose(_frameCount);
1492+ displayPlugin->beginFrameRender(_frameCount);
14931493
14941494 // update the avatar with a fresh HMD pose
14951495 getMyAvatar()->updateFromHMDSensorMatrix(getHMDSensorPose());
14961496
1497+ // update sensorToWorldMatrix for camera and hand controllers
1498+ getMyAvatar()->updateSensorToWorldMatrix();
1499+
1500+
14971501 auto lodManager = DependencyManager::get<LODManager>();
14981502
14991503
@@ -2006,6 +2010,12 @@ void Application::keyPressEvent(QKeyEvent* event) { · 506 unmodified lines
20062010 }
20072011 break;
20082012
2013+ case Qt::Key_Y:
2014+ if (isShifted && isMeta) {
2015+ getActiveDisplayPlugin()->cycleDebugOutput();
2016+ }
2017+ break;
2018+
20092019 case Qt::Key_B:
20102020 if (isMeta) {
20112021 auto offscreenUi = DependencyManager::get<OffscreenUi>();
@@ -2571,11 +2581,6 @@ void Application::idle(uint64_t now) { · 559 unmodified lines
25712581 return; // bail early, nothing to do here.
25722582 }
25732583
2574− checkChangeCursor();
2575−
2576− Stats::getInstance()->updateStats();
2577− AvatarInputs::getInstance()->update();
2578−
25792584 // These tasks need to be done on our first idle, because we don't want the showing of
25802585 // overlay subwindows to do a showDesktop() until after the first time through
25812586 static bool firstIdle = true;
@@ -2624,6 +2629,11 @@ void Application::idle(uint64_t now) { · 42 unmodified lines
26242629 // We're going to execute idle processing, so restart the last idle timer
26252630 _lastTimeUpdated.start();
26262631
2632+ checkChangeCursor();
2633+
2634+ Stats::getInstance()->updateStats();
2635+ AvatarInputs::getInstance()->update();
2636+
26272637 {
26282638 static uint64_t lastIdleStart{ now };
26292639 uint64_t idleStartToStartDuration = now - lastIdleStart;
@@ -3390,9 +3400,6 @@ void Application::update(float deltaTime) { · 760 unmodified lines
33903400
33913401 qApp->updateMyAvatarLookAtPosition();
33923402
3393− // update sensorToWorldMatrix for camera and hand controllers
3394− myAvatar->updateSensorToWorldMatrix();
3395−
33963403 {
33973404 PROFILE_RANGE_EX("MyAvatar", 0xffff00ff, (uint64_t)getActiveDisplayPlugin()->presentCount());
33983405 avatarManager->updateMyAvatar(deltaTime);