HISE Logo Forum
    • Categories
    • Register
    • Login

    Vector vs Image GUI Resources

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 672 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.
    • d.healeyD
      d.healey
      last edited by

      Is there any disadvantage (CPU wise) to using vector graphics and panels to create a GUI than using PNGs?

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

      ossian1961O 1 Reply Last reply Reply Quote 0
      • ossian1961O
        ossian1961 @d.healey
        last edited by

        @d-healey said in Vector vs Image GUI Resources:

        Is there any disadvantage (CPU wise) to using vector graphics and panels to create a GUI than using PNGs?

        Vector images need a re-rendering every times you change the sizes anyway I don't think it could be significant on CPU, I mean it's not 3D rendering imho ;)

        https://www.kontakthub.com/label/Imagik-Sound/
        https://mirtklaar.bandcamp.com/

        1 Reply Last reply Reply Quote 1
        • Christoph HartC
          Christoph Hart
          last edited by

          Hard to say in general, sometimes just drawing an image is incredibly expensive because it needs to be resized on the fly, but drawing complex shapes and gradients by vector definitely starts to burn CPU at some point.

          d.healeyD 1 Reply Last reply Reply Quote 3
          • d.healeyD
            d.healey @Christoph Hart
            last edited by

            @Christoph-Hart I guess it doesn't matter too much if the GUI script is deferred.

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

            1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart
              last edited by

              Even if you don‘t defer it, the paint routine will never be called on the audio thread so crackling audio will not be the problem here.

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

              29

              Online

              1.7k

              Users

              11.8k

              Topics

              102.8k

              Posts