HISE Logo Forum
    • Categories
    • Register
    • Login

    Slow setEffect() with multiple Macro assignments

    Scheduled Pinned Locked Moved Solved General Questions
    2 Posts 1 Posters 42 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bendursoB
      bendurso
      last edited by bendurso

      I'm dynamically changing the hardcoded master FX networks using SlotFX.setEffect().

      When multiple controls are linked to a macro modulator, calling SlotFX.setEffect() becomes slow and causes a significant increase in CPU usage (even when the controls are not related to the FX).

      Clarification: I tried removing the macros before changing the effect and then reapplying them using getMacroDataObject() and setMacroDataFromObject(), but this approach turned out to be quite buggy.

      Does anyone have suggestions on how to fix this? This happens in both HISE and the compiled plugin.

      Another interesting observation: switching the network from the HISE interface works smoothly, so the issue might be related to SlotFX.setEffect()

      bendursoB 1 Reply Last reply Reply Quote 0
      • bendursoB
        bendurso @bendurso
        last edited by

        @bendurso Fixed. The problem was actually caused by my filters script, which overloaded the system with macros.

        1 Reply Last reply Reply Quote 0
        • bendursoB bendurso marked this topic as a question
        • bendursoB bendurso has marked this topic as solved
        • First post
          Last post

        19

        Online

        1.7k

        Users

        11.8k

        Topics

        102.4k

        Posts