History

Merge branch 'master' of github.com:highfidelity/hifi into controller-ui

Dante Ruiz committed 9 years ago

Commit d65c0df2 parents e125e1f 347f02099 files · +1790 −1119Browse files

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

Unified · Split

interface/src/Application.cpp+8−9
@@ -115,6 +115,7 @@ · 114 unmodified lines
115115 #include <render/RenderFetchCullSortTask.h>
116116 #include <RenderDeferredTask.h>
117117 #include <RenderForwardTask.h>
118+#include <RenderViewTask.h>
118119 #include <ResourceCache.h>
119120 #include <ResourceRequest.h>
120121 #include <SandboxUtils.h>
@@ -1722,6 +1723,10 @@ void Application::cleanupBeforeQuit() { · 1601 unmodified lines
17221723
17231724 // Cleanup all overlays after the scripts, as scripts might add more
17241725 _overlays.cleanupAllOverlays();
1726+ // The cleanup process enqueues the transactions but does not process them. Calling this here will force the actual
1727+ // removal of the items.
1728+ // See https://highfidelity.fogbugz.com/f/cases/5328
1729+ _main3DScene->processTransactionQueue();
17251730
17261731 // first stop all timers directly or by invokeMethod
17271732 // depending on what thread they run in
@@ -1868,15 +1873,9 @@ void Application::initializeGL() { · 140 unmodified lines
18681873
18691874 // Set up the render engine
18701875 render::CullFunctor cullFunctor = LODManager::shouldRender;
1871− _renderEngine->addJob<RenderShadowTask>("RenderShadowTask", cullFunctor);
1872− const auto items = _renderEngine->addJob<RenderFetchCullSortTask>("FetchCullSort", cullFunctor);
1873− assert(items.canCast<RenderFetchCullSortTask::Output>());
18741876 static const QString RENDER_FORWARD = "HIFI_RENDER_FORWARD";
1875− if (QProcessEnvironment::systemEnvironment().contains(RENDER_FORWARD)) {
1876− _renderEngine->addJob<RenderForwardTask>("Forward", items);
1877− } else {
1878− _renderEngine->addJob<RenderDeferredTask>("RenderDeferredTask", items);
1879− }
1877+ bool isDeferred = !QProcessEnvironment::systemEnvironment().contains(RENDER_FORWARD);
1878+ _renderEngine->addJob<RenderViewTask>("RenderMainView", cullFunctor, isDeferred);
18801879 _renderEngine->load();
18811880 _renderEngine->registerScene(_main3DScene);
18821881
@@ -5078,7 +5077,7 @@ namespace render { · 3195 unmodified lines
50785077 template <> const ItemKey payloadGetKey(const WorldBoxRenderData::Pointer& stuff) { return ItemKey::Builder::opaqueShape(); }
50795078 template <> const Item::Bound payloadGetBound(const WorldBoxRenderData::Pointer& stuff) { return Item::Bound(); }
50805079 template <> void payloadRender(const WorldBoxRenderData::Pointer& stuff, RenderArgs* args) {
5081− if (args->_renderMode != RenderArgs::MIRROR_RENDER_MODE && Menu::getInstance()->isOptionChecked(MenuOption::WorldAxes)) {
5080+ if (Menu::getInstance()->isOptionChecked(MenuOption::WorldAxes)) {
50825081 PerformanceTimer perfTimer("worldBox");
50835082
50845083 auto& batch = *args->_batch;