Forum
    • Categories
    • Register
    • Login

    Issues with Panel.repaint() and Panel.repaintImmediately() - laggy user interface

    Scheduled Pinned Locked Moved Unsolved Scripting
    5 Posts 2 Posters 18 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.
    • Oli UllmannO
      Oli Ullmann
      last edited by

      Hi everyone :-)

      When I use repaint() or repaintImmediately() - for example, in a timer callback to create an animation - the user interface quickly becomes very laggy if the panel is somewhat large. The Cubase interface also becomes very laggy.

      Does anyone have any ideas on how I can solve this problem? I already tried using a background task, but it didn’t work - or maybe I did it wrong. :-)

      Thanks a lot,
      Oli

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @Oli Ullmann
        last edited by David Healey

        @Oli-Ullmann said in Issues with Panel.repaint() and Panel.repaintImmediately() - laggy user interface:

        Does anyone have any ideas on how I can solve this problem?

        Drop the animation, ain't nobody looking at your sexy UI anyway.

        Seriously though, I find users add the plugin to their project, set up some parameter (or more likely load a preset) then close the interface. Animations that aren't functional are just a way to use up some extra CPU. Since Juce6 isn't using the GPU for drawing, your framerate is limited unless you're using shaders.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        Oli UllmannO 1 Reply Last reply Reply Quote 0
        • Oli UllmannO
          Oli Ullmann @David Healey
          last edited by

          @David-Healey
          Ha ha ha 😂
          I was afraid this wouldn't be an easy task...

          If I want to use shaders, I need to enable OpenGL, right? But I've heard that this isn't supported on Mac anymore. Or am I mistaken?

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @Oli Ullmann
            last edited by David Healey

            @Oli-Ullmann said in Issues with Panel.repaint() and Panel.repaintImmediately() - laggy user interface:

            If I want to use shaders, I need to enable OpenGL, right? But I've heard that this isn't supported on Mac anymore. Or am I mistaken?

            I have no idea, as you can probably tell from my response, I don't use animations on my UIs (yet) 😛

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            Oli UllmannO 1 Reply Last reply Reply Quote 1
            • Oli UllmannO
              Oli Ullmann @David Healey
              last edited by

              @David-Healey
              Ha ha, that makes sense! :-)
              Thanks anyway for your reply! :-)

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

              20

              Online

              2.3k

              Users

              13.7k

              Topics

              119.2k

              Posts