HISE Logo Forum
    • Categories
    • Register
    • Login

    Performance when drawing large graphics

    Scheduled Pinned Locked Moved Scripting
    6 Posts 2 Posters 107 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.
    • SimonS
      Simon
      last edited by Simon

      In my plugin I'm trying to swap between different backgrounds with a sliding animation, and I've noticed the graphics performance seems slow compared to Kontakt.

      Animating more than 6 UI-sized layers on top of each other, whether it's in separate panels or as calls within a single paint routine, reduces the performance enough to be noticeably laggy. Performance seems identical regardless of the current alpha and resolution of the source image.

      Preemptively I'll add that in my plugin, I am not animating 6 layers on top of each other, more like 3, but that the performance is worse there than in my stripped down example, for reasons I haven't tracked down yet.

      Are there any workarounds or tips for maximizing performance in this situation?

      Here's what animating 1 layer looks like: 1layer.mkv

      And here's 10 layers: 10layers.mkv

      Meanwhile here's Kontakt happily drawing 24 moving overlapping semi-transparent images

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

        @Simon How much RAM is the giant image using?

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

        SimonS 1 Reply Last reply Reply Quote 0
        • SimonS
          Simon @d.healey
          last edited by Simon

          @d-healey Lots, it's giant! 27MB. I'll try with a physically smaller image too.

          Edit: Ah wait I already did, I tried with the same image downscaled to 1/4 the resolution and performance was identical.

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

            @Simon said in Performance when drawing large graphics:

            Lots, it's giant! 27MB. I'll try with a physically smaller image too.

            Is that the file size of the image or the raw bitmap size (the size it will take up in RAM)?

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

            SimonS 1 Reply Last reply Reply Quote 0
            • SimonS
              Simon @d.healey
              last edited by

              @d-healey bitmap

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

                @Simon That's not that big. I don't know what the cause of the issue is, I don't use images very much in HISE so it could be you've run into some limitation.

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

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

                31

                Online

                1.7k

                Users

                11.9k

                Topics

                103.6k

                Posts