diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 5a340f471e..8bfb1dfbd4 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -2209,6 +2209,7 @@ Application::~Application() { // shutdown render engine _main3DScene = nullptr; _renderEngine = nullptr; + _infinityEngine = nullptr; DependencyManager::destroy(); @@ -4097,6 +4098,9 @@ void Application::idle() { qFatal("Unable to make main thread context current"); } + { + _infinityEngine->run(); + } { PerformanceTimer perfTimer("update"); PerformanceWarning warn(showWarnings, "Application::idle()... update()"); diff --git a/interface/src/Application.h b/interface/src/Application.h index d4041aa3be..0435425d5f 100644 --- a/interface/src/Application.h +++ b/interface/src/Application.h @@ -69,6 +69,7 @@ #include "ui/OverlayConductor.h" #include "ui/overlays/Overlays.h" #include "UndoStackScriptingInterface.h" +#include "workload/Engine.h" #include #include @@ -612,6 +613,7 @@ private: render::ScenePointer _main3DScene{ new render::Scene(glm::vec3(-0.5f * (float)TREE_SCALE), (float)TREE_SCALE) }; render::EnginePointer _renderEngine{ new render::Engine() }; gpu::ContextPointer _gpuContext; // initialized during window creation + workload::EnginePointer _infinityEngine{ new workload::Engine() }; mutable QMutex _renderArgsMutex{ QMutex::Recursive }; struct AppRenderArgs {