Forum
    • Categories
    • Register
    • Login

    COREGRAPHICS + ASYNC and HISE

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 387 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.
    • DanHD
      DanH
      last edited by

      A dev I've been speaking with recently suggested I try the definition "JUCE_COREGRAPHICS_DRAW_ASYNC" to speed up the graphics of my plugin. It only works if OpenGL is disabled.

      The definition goes into Projucer here:
      Screen Shot 2021-02-13 at 12.22.55 AM.png

      Then you build HISE and test - but I saw no gains either in HISE or my plugin. Am wondering if there's a definition to disable OpenGL at the Projucer level, or a definition to enable ASYNC at HISE level.

      Any insight would be very welcome!

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

      ustkU 1 Reply Last reply Reply Quote 1
      • ustkU
        ustk @DanH
        last edited by

        @DanH I don't know what this does, but aren't the graphics rending already async since they are in the message thread?

        Hise made me an F5 dude, any other app just suffers...

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

          @ustk

          but aren't the graphics rending already async since they are in the message thread?

          Not if you're updating them from a non-deferred realtime callback.

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

          ustkU 1 Reply Last reply Reply Quote 1
          • ustkU
            ustk @David Healey
            last edited by

            @d-healey But isn't the onInit of the interface script already deferred? I always thought so but something tells me I was wrong all the time 🙃

            Hise made me an F5 dude, any other app just suffers...

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

              @ustk On init is deferred, but if you call functions that update the GUI from on note for example, it will be triggered in the realtime thread. This is why I always suggest deferring all main interface scripts by default unless you have a really good reason not to.

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

              ustkU 1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @David Healey
                last edited by

                @d-healey I'm relieved 🤣

                Hise made me an F5 dude, any other app just suffers...

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

                13

                Online

                2.1k

                Users

                13.2k

                Topics

                115.0k

                Posts