From e6d7ffdd76699073f043b8454a18066416525799 Mon Sep 17 00:00:00 2001 From: HifiExperiments Date: Tue, 2 Apr 2024 22:21:22 -0700 Subject: [PATCH 1/4] refactor application.cpp --- interface/src/Application.cpp | 10597 +++------------- interface/src/Application.h | 1031 +- interface/src/ApplicationEventHandler.h | 77 + interface/src/ApplicationMeshProvider.h | 67 + interface/src/Application_Assets.cpp | 523 + interface/src/Application_Camera.cpp | 374 + interface/src/Application_Entities.cpp | 359 + interface/src/Application_Events.cpp | 931 ++ interface/src/Application_Graphics.cpp | 595 + interface/src/Application_Plugins.cpp | 418 + interface/src/Application_Setup.cpp | 2166 ++++ interface/src/Application_UI.cpp | 1393 ++ interface/src/CrashRecoveryHandler.cpp | 5 - interface/src/CrashRecoveryHandler.h | 5 - interface/src/DeadlockWatchdog.cpp | 22 + interface/src/DeadlockWatchdog.h | 159 + interface/src/LODManager.cpp | 1 + interface/src/WindowsSystemInfo.h | 240 + interface/src/avatar/MyAvatar.cpp | 1 + interface/src/avatar/MyHead.cpp | 1 + interface/src/graphics/RenderEventHandler.cpp | 1 + interface/src/main.cpp | 15 +- .../src/octree/OctreePacketProcessor.cpp | 43 +- interface/src/octree/OctreePacketProcessor.h | 10 + .../src/raypick/PointerScriptingInterface.cpp | 2 + .../PerformanceScriptingInterface.cpp | 2 + .../scripting/RenderScriptingInterface.cpp | 5 +- interface/src/ui/HMDToolsDialog.cpp | 2 + interface/src/ui/JSConsole.cpp | 1 + interface/src/ui/OctreeStatsDialog.cpp | 1 + interface/src/ui/OctreeStatsProvider.cpp | 1 + .../src/AbstractViewStateInterface.h | 5 - 32 files changed, 9674 insertions(+), 9379 deletions(-) create mode 100644 interface/src/ApplicationEventHandler.h create mode 100644 interface/src/ApplicationMeshProvider.h create mode 100644 interface/src/Application_Assets.cpp create mode 100644 interface/src/Application_Camera.cpp create mode 100644 interface/src/Application_Entities.cpp create mode 100644 interface/src/Application_Events.cpp create mode 100644 interface/src/Application_Graphics.cpp create mode 100644 interface/src/Application_Plugins.cpp create mode 100644 interface/src/Application_Setup.cpp create mode 100644 interface/src/Application_UI.cpp create mode 100644 interface/src/DeadlockWatchdog.cpp create mode 100644 interface/src/DeadlockWatchdog.h create mode 100644 interface/src/WindowsSystemInfo.h diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 4ff848fabed..f27d8a944d9 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -12,252 +12,124 @@ // SPDX-License-Identifier: Apache-2.0 // - #include "Application.h" -#include -#include - -#include -#include -#include -#include -#include - -#include - -#include -#include -#include -#include -#include -#include - +#include +#include #include -#include -#include -#include - #include #include -#include -#include #include +#include -#include -#include - -#include - -#include -#include -#include - - -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include #include -#include #include -#include -#include #include -#include -#include -#include -#include -#include +#include #include +#include