HISE Logo Forum
    • Categories
    • Register
    • Login

    Performance (Samplemaps/Samples)

    Scheduled Pinned Locked Moved Solved General Questions
    6 Posts 3 Posters 363 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.
    • VorosMusicV
      VorosMusic
      last edited by

      Hello there!

      I know thats quite a big topic, but what are the most performance heavy tasks?
      My newest instrument is quite laggy and I would like to improve that.

      1. What has more impact changing Samplemaps, or switching between Samplers
      2. I used .getAllComponents, should I create an array with only the elements I really need (few exceptions)
      3. What about graphics? How much impact do kinda big images have on performance and how about vectors, are they less heavy, or more?

      Thanks for any tipps!
      (ps. also using 1 convolution Reverb & 1 EQ)

      DanHD d.healeyD 2 Replies Last reply Reply Quote 0
      • DanHD
        DanH @VorosMusic
        last edited by

        @VorosMusic have you tried using OpenGL? You'll find an option in settings

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

        VorosMusicV 1 Reply Last reply Reply Quote 1
        • VorosMusicV
          VorosMusic @DanH
          last edited by VorosMusic

          @DanH No, I've read about in other threads but haven't tried it yet.
          I'll give it a try!

          WOW! That was an amazing boost!!

          I'm happy with the result, but would still like to improve what ever is possible, just to be save and learn form it, so all ideas arewelcome!

          Thanks @DanH for the quick tipp!

          1 Reply Last reply Reply Quote 0
          • VorosMusicV VorosMusic marked this topic as a question on
          • d.healeyD
            d.healey @VorosMusic
            last edited by d.healey

            @VorosMusic said in Performance (Samplemaps/Samples):

            1. What has more impact changing Samplemaps, or switching between Samplers

            What do you mean by "switching samplers"? Changing sample maps doesn't really have an impact because this is an offline process, you should be changing them on the fly.

            1. I used .getAllComponents, should I create an array with only the elements I really need (few exceptions)

            If you only want specific elements you shouldn't use getAllComponents probably. Or if you are going to use it pass a regex filter. You should only be calling this function in on init and storing references that you then use in other parts of your script. Using a sensible naming scheme for your components will greatly help.

            1. What about graphics? How much impact do kinda big images have on performance and how about vectors, are they less heavy, or more?

            Images use RAM, vectors have minimal impact, complex lottie animations might be noticeable on the CPU.

            Is your Interface script deferred? If not, are you doing UI tasks in the real-time callbacks? If so that's going to cause issues.

            Read this if you haven't already - https://forum.hise.audio/topic/79/scripting-best-practices

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

            VorosMusicV 1 Reply Last reply Reply Quote 1
            • VorosMusicV VorosMusic has marked this topic as solved on
            • VorosMusicV
              VorosMusic @d.healey
              last edited by

              @d-healey Thank you, that was really helpful!
              I'll definitely check out the thread you mentioned.

              and by switching I meant:
              I have buttons on the UI to switch between different Instruments/Samples, a few of them are similar in behavior and could probably be done in the same sampler just by switching the sample maps.

              ps. Most of them never play at the same time.

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

                @VorosMusic

                I have buttons on the UI to switch between different Instruments/Samples

                There are multiple methods to do that, so it would depend on what you're doing.

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

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

                57

                Online

                1.7k

                Users

                11.7k

                Topics

                101.8k

                Posts