perf(gui): skip unchanged repaints and gate updates by tab
Add change detection to Display, WaveformDisplay, FilterDisplay, EnvelopeDisplay, and LFODisplay so repaint() is only called when values actually change. Gate updateVisuals() by currentTab so only the visible tab's displays are updated each timer tick. Similarly gate updateModList/updateMacroList to their respective tabs. Manage dynamically created controls via ownedControls unique_ptr vector instead of raw new leaks. Null-check parameter lookups before creating attachments. Hold engine control lock when reading matrix/macros/LFO shape data. Fix envelope display curve directions (attack rising from bottom, decay falling toward sustain, release falling toward bottom). Add tooltip to FilterDisplay noting the approximation. Replace ToggleButton raw param pointer with ParameterAttachment for proper gesture handling. Sync preset and scale combos to processor state.
This commit is contained in:
@@ -35,7 +35,6 @@ public:
|
||||
private:
|
||||
bool state = false;
|
||||
juce::String label;
|
||||
juce::RangedAudioParameter* param = nullptr;
|
||||
std::unique_ptr<juce::ParameterAttachment> attachment;
|
||||
std::function<void (bool)> onClick;
|
||||
juce::Colour onColour = theme::accent;
|
||||
|
||||
Reference in New Issue
Block a user