From 7d95aa555b104a41969b517fd778f364e55e0536 Mon Sep 17 00:00:00 2001 From: jatin Date: Sun, 22 Sep 2024 23:09:07 -0700 Subject: [PATCH] Temporarily removing some loading code --- Plugin/CMakeLists.txt | 2 +- Plugin/Source/GUI/AutoUpdating.h | 2 +- Plugin/Source/PluginProcessor.cpp | 13 ++++++++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Plugin/CMakeLists.txt b/Plugin/CMakeLists.txt index d2d7b379..d7525cc2 100644 --- a/Plugin/CMakeLists.txt +++ b/Plugin/CMakeLists.txt @@ -91,7 +91,7 @@ target_compile_definitions(CHOWTapeModel JUCE_VST3_CAN_REPLACE_VST2=0 JUCE_JACK=1 JUCE_ALSA=1 - CHOWDSP_AUTO_UPDATE=1 + CHOWDSP_AUTO_UPDATE=0 CHOWDSP_GIT_BRANCH="${GIT_BRANCH}" CHOWDSP_GIT_COMMIT_HASH="${GIT_COMMIT_HASH}" CHOWDSP_BUILD_FQDN="${PLUGIN_BUILD_FQDN}" diff --git a/Plugin/Source/GUI/AutoUpdating.h b/Plugin/Source/GUI/AutoUpdating.h index 7e4b0616..8ef9103c 100644 --- a/Plugin/Source/GUI/AutoUpdating.h +++ b/Plugin/Source/GUI/AutoUpdating.h @@ -29,7 +29,7 @@ class AutoUpdater : public Component { public: AutoUpdater(); - ~AutoUpdater(); + ~AutoUpdater() override; void paint (Graphics& g) override; void resized() override; diff --git a/Plugin/Source/PluginProcessor.cpp b/Plugin/Source/PluginProcessor.cpp index 686b98d3..2d21963a 100644 --- a/Plugin/Source/PluginProcessor.cpp +++ b/Plugin/Source/PluginProcessor.cpp @@ -221,8 +221,14 @@ void ChowtapeModelAudioProcessor::latencyCompensation() AudioProcessorEditor* ChowtapeModelAudioProcessor::createEditor() { - if (openGLHelper == nullptr) - openGLHelper = std::make_unique(); + // if (openGLHelper == nullptr) + // { + // const auto start = std::chrono::high_resolution_clock::now(); + // openGLHelper = std::make_unique(); + // const auto end = std::chrono::high_resolution_clock::now(); + // auto dur = std::chrono::duration_cast (end - start).count(); + // dur = 0; + // } auto builder = std::make_unique (magicState); builder->registerJUCEFactories(); @@ -282,7 +288,8 @@ AudioProcessorEditor* ChowtapeModelAudioProcessor::createEditor() // we need to set resize limits for StandalonePluginHolder editor->setResizeLimits (10, 10, 2000, 2000); - openGLHelper->setComponent (editor); + if (openGLHelper != nullptr) + openGLHelper->setComponent (editor); return editor; }