HISE Logo Forum
    • Categories
    • Register
    • Login

    Determining ScriptNode Block Size?

    Scheduled Pinned Locked Moved Solved ScriptNode
    6 Posts 3 Posters 373 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.
    • clevername27C
      clevername27
      last edited by clevername27

      Am I doing this right?

      1. Wrapping the whole network in a dynamic block.
      2. Attach a widget to the block size parameter.
      3. Compile the network and plugin.
      4. Load the hard-coded network.
      5. Run the plugin.
      6. As I'm running it, try different block sizes.
      7. When I find the optimal block size, replace the dynamic block with a fixed block.
      8. Profit?

      Thanks, I'm a little lost here…

      f368a437-7b83-40bb-9a6a-cba5d6da2883-Screenshot 2024-08-28 at 9.00.48 PM.png Screenshot 2024-08-28 at 9.00.48 PM

      Matt_SFM 1 Reply Last reply Reply Quote 0
      • Matt_SFM
        Matt_SF @clevername27
        last edited by

        @clevername27 You got it right. I've used this technique recently to compare the CPU consuption when using different block sizes.

        Develop branch
        Win10 & VS17 / Ventura & Xcode 14. 3

        oskarshO 1 Reply Last reply Reply Quote 1
        • oskarshO
          oskarsh @Matt_SF
          last edited by

          @Matt_SF can you share a little about what you found. What is the impact over lower or higher block sizes on the cpu?

          Matt_SFM 1 Reply Last reply Reply Quote 0
          • Matt_SFM
            Matt_SF @oskarsh
            last edited by

            @oskarsh In my case, I've used it in a simple compressor. But In my plugin, I have 16 channels, which can all use the same compressor.

            Processing the signal using a block size of 1 uses a bit more CPU (around 2% instead of 1-1.5% in my case), but if all 16 compressors are activated, this can be quite a lot.

            What I thought I could do is offer the user a "Hi-Quality" switch so he can choose how he wants the FX to behave, and save CPU.

            Develop branch
            Win10 & VS17 / Ventura & Xcode 14. 3

            oskarshO 1 Reply Last reply Reply Quote 0
            • oskarshO
              oskarsh @Matt_SF
              last edited by

              @Matt_SF Ok that sounds interesting!

              make sure you set your networks to suspend on silence this usually drastically improves the CPU for these kinds of fx.

              Matt_SFM 1 Reply Last reply Reply Quote 0
              • Matt_SFM
                Matt_SF @oskarsh
                last edited by

                @oskarsh yes indeed!

                Develop branch
                Win10 & VS17 / Ventura & Xcode 14. 3

                1 Reply Last reply Reply Quote 0
                • clevername27C clevername27 marked this topic as a question on
                • clevername27C clevername27 has marked this topic as solved on
                • First post
                  Last post

                11

                Online

                1.7k

                Users

                11.9k

                Topics

                103.4k

                Posts