HISE Logo Forum
    • Categories
    • Register
    • Login

    COREGRAPHICS + ASYNC and HISE

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 352 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?

        Can't help pressing F5 in the forum...

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.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.

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

          ustkU 1 Reply Last reply Reply Quote 1
          • ustkU
            ustk @d.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 🙃

            Can't help pressing F5 in the forum...

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @ustk
              last edited by d.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.

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

              ustkU 1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @d.healey
                last edited by

                @d-healey I'm relieved 🤣

                Can't help pressing F5 in the forum...

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

                44

                Online

                1.8k

                Users

                12.0k

                Topics

                104.4k

                Posts