Skip to content

Commit b221bbb

Browse files
committed
Disable activity/debug in pluginmode for performance
1 parent 4c76f25 commit b221bbb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Source/Dialogs/OverlayDisplaySettings.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@ class OverlayDisplaySettings final : public Component
159159
void valueChanged(Value& v) override
160160
{
161161
if (v.refersToSameSourceAs(debugModeValue)) {
162-
pd->lockAudioThread();
163162
set_plugdata_debugging_enabled(getValue<bool>(debugModeValue));
164-
pd->unlockAudioThread();
165163
}
166164
}
167165

Source/PluginMode.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ class PluginMode final : public Component
140140
#endif
141141
addAndMakeVisible(titleBar);
142142
cnv->connectionLayer.setVisible(false);
143+
144+
set_plugdata_debugging_enabled(0);
145+
set_plugdata_activity_enabled(0);
143146
}
144147

145148
~PluginMode() override
@@ -149,6 +152,9 @@ class PluginMode final : public Component
149152
editor->pd->lnf->setTheme(SettingsFile::getInstance()->getTheme(lastTheme));
150153
editor->getTopLevelComponent()->sendLookAndFeelChange();
151154
}
155+
156+
set_plugdata_debugging_enabled(SettingsFile::getInstance()->getProperty<bool>("debug_connections"));
157+
cnv->updateOverlays(); // Restores set_plugdata_activity_enabled
152158
}
153159

154160
void updateSize()

0 commit comments

Comments
 (0)