HISE Logo Forum
    • Categories
    • Register
    • Login

    Minimizing latency in scriptnode

    Scheduled Pinned Locked Moved General Questions
    8 Posts 2 Posters 346 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.
    • Dan KorneffD
      Dan Korneff
      last edited by Dan Korneff

      I'm starting to calculate the latency for an FX plugin made in scriptnode. My past projects have had about 10-15 samples of latency that needed to be compensated for, but this one has.... 27890 samples of latency. :anguished_face: The network has about 100 nodes in it, so it's fairly complex, but that still seems high to me.
      We can compensate for this using Engine.setLatencySamples();, but the playback from my DAW is delayed considerably due to the amount of compensation, and all the level meters are out of sync, visually.
      Is there some secret method I need to use when compiling to minimize latency in a dsp network?

      Dan Korneff - Producer / Mixer / Audio Nerd

      d.healeyD 1 Reply Last reply Reply Quote 1
      • d.healeyD
        d.healey @Dan Korneff
        last edited by

        @dustbro Did you compile the network to a dll?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        Dan KorneffD 1 Reply Last reply Reply Quote 0
        • Dan KorneffD
          Dan Korneff @d.healey
          last edited by

          @d-healey I didn't. Doesn't that only affect CPU performance? I guess there's only one way to find out... :crossed_fingers_medium-light_skin_tone:

          Dan Korneff - Producer / Mixer / Audio Nerd

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @Dan Korneff
            last edited by

            @dustbro said in Minimizing latency in scriptnode:

            Doesn't that only affect CPU performance

            Maybe... let me know :D

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            Dan KorneffD 1 Reply Last reply Reply Quote 0
            • Dan KorneffD
              Dan Korneff @d.healey
              last edited by

              @d-healey the manual says:
              Open the projucer file of HISE (either the standalone or the plugin project), change the compile flag HI_ENABLE_CUSTOM_NODE_LOCATION in the hi_modules module and recompile HISE:

              I'm not seeing it

              custom node path.png

              Dan Korneff - Producer / Mixer / Audio Nerd

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @Dan Korneff
                last edited by

                @dustbro said in Minimizing latency in scriptnode:

                Open the projucer file of HISE (either the standalone or the plugin project), change the compile flag HI_ENABLE_CUSTOM_NODE_LOCATION in the hi_modules module and recompile HISE:

                I think this is for when you are adding your own (c++) nodes to script node rather than using the built in nodes.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                Dan KorneffD 1 Reply Last reply Reply Quote 0
                • Dan KorneffD
                  Dan Korneff @d.healey
                  last edited by

                  @d-healey It looks like @Matt_SF has already been here:

                  @matt_sf said in Scripnode 101:

                  @lalalandsynth said in Scripnode 101:

                  So what is the difference between making a dll and exporting as cpp ?

                  In older versions of HISE you had to export as cpp and compile HISE again to include your network into you plugin. It's in the doc but it's outdated.
                  With latest versions you can compile a dll with the workbench, then just compile your plugin with HISE and the dll network will be embedded into your plugin.

                  And what is the benefit of building an FX in SNEX Workbench rather then within Hise where I can make them In context ?

                  @christoph-hart said in Snex_node Needs to be wrapped into a compileable DSP Network:

                  Everything that is using the SNEX compiler in HISE must be compiled to a C++ class for the exported plugin (the JIT compiler is not included in the codebase of a exported plugin). This includes:

                  • list itemany SNEX node
                  • list itemany expression node (control.cable_expr and math.expr)
                  • list itemany expression in a parameter connection (the Expression property)

                  So if you use the SNEX compiler you must compile your network first with the workbench. Also if you're working on big projects it's "lighter" to use the workbench to design your network(s) : once created, they are available here :

                  alt text

                  Dan Korneff - Producer / Mixer / Audio Nerd

                  1 Reply Last reply Reply Quote 1
                  • Dan KorneffD
                    Dan Korneff
                    last edited by

                    Found the culprit!
                    The value of my xfader node which was modulating a delay was set wrong, so it was inducing a fixed delay when at rest.
                    One crisis averted! 10 more to go :beaming_face_with_smiling_eyes:

                    modulator.png

                    Dan Korneff - Producer / Mixer / Audio Nerd

                    1 Reply Last reply Reply Quote 2
                    • First post
                      Last post

                    34

                    Online

                    1.8k

                    Users

                    12.0k

                    Topics

                    104.1k

                    Posts