HISE Logo Forum
    • Categories
    • Register
    • Login

    HISE HEAVY ON GPU PROCESSING?

    Scheduled Pinned Locked Moved General Questions
    50 Posts 8 Posters 3.2k 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.
    • FortuneF
      Fortune @Casey Kolb
      last edited by Fortune

      @Lunacy-Audio So first I need to set HISE_USE_OPENGL_FOR_PLUGIN=1 in extra definitions menu.

      And also must use in Settings Floating Tile?

      Also I can't see use open gl option in Custom Settings Floating Tile :/

      1 Reply Last reply Reply Quote 0
      • Casey KolbC
        Casey Kolb
        last edited by

        I think you need to add a Settings Floating Tile and set the content data like this:

        const var settingsEngineTile = Content.getComponent("settings_Engine_Tile");
        const var isPlugin = Engine.isPlugin();
        const var tileData = {
                    "Type": "CustomSettings",
                    "Driver": !isPlugin,
                    "Device": !isPlugin,
                    "Output": !isPlugin,
                    "BufferSize": !isPlugin,
                    "SampleRate": !isPlugin,
                    "GlobalBPM": false,
                    "StreamingMode": true,
                    "DebugMode": false,
                    "GraphicRendering": true,
                    "ScaleFactor": true,
                    "SustainCC": false,
                    "ClearMidiCC": true,
                    "SampleLocation": true,
                    "ScaleFactorList": [
                        0.5,
                        0.75,
                        1,
                        1.25,
                        1.5,
                        2
                    ]
                };
        
        settingsEngineTile.setContentData(tileData);
        

        graphicRendering is the OpenGL combobox that allows the user to toggle it on/off.

        Casey Kolb
        Founder & CEO of Lunacy Audio
        Composer | Producer | Software Developer

        FortuneF DanHD 2 Replies Last reply Reply Quote 1
        • FortuneF
          Fortune @Casey Kolb
          last edited by Fortune

          @Lunacy-Audio said in HISE HEAVY ON GPU PROCESSING?:

          I think you need to add a Settings Floating Tile and set the content data like this:

          const var settingsEngineTile = Content.getComponent("settings_Engine_Tile");
          const var isPlugin = Engine.isPlugin();
          const var tileData = {
                      "Type": "CustomSettings",
                      "Driver": !isPlugin,
                      "Device": !isPlugin,
                      "Output": !isPlugin,
                      "BufferSize": !isPlugin,
                      "SampleRate": !isPlugin,
                      "GlobalBPM": false,
                      "StreamingMode": true,
                      "DebugMode": false,
                      "GraphicRendering": true,
                      "ScaleFactor": true,
                      "SustainCC": false,
                      "ClearMidiCC": true,
                      "SampleLocation": true,
                      "ScaleFactorList": [
                          0.5,
                          0.75,
                          1,
                          1.25,
                          1.5,
                          2
                      ]
                  };
          
          settingsEngineTile.setContentData(tileData);
          

          graphicRendering is the OpenGL combobox that allows the user to toggle it on/off.

          Oh I see Thank you.
          So if I use this floating tile I won't need to use HISE_USE_OPENGL_FOR_PLUGIN=1 in extra definitions menu, right?
          Also there is no combobox for Graphic Rendering even when I make it true.

          1 Reply Last reply Reply Quote 0
          • Tania GhoshT
            Tania Ghosh @DanH
            last edited by

            @DanH Ok....EXD.jpg

            HISE_USE_OPENGL_FOR_PLUGIN=1
            

            Tania Ghosh

            NatanN 1 Reply Last reply Reply Quote 0
            • NatanN
              Natan @Tania Ghosh
              last edited by

              @Tania-Ghosh Yeah, Just Paste That Code Into The White Boxes

              Tania GhoshT 1 Reply Last reply Reply Quote 1
              • Tania GhoshT
                Tania Ghosh @Natan
                last edited by

                @Natan Superb (y)

                Tania Ghosh

                1 Reply Last reply Reply Quote 0
                • DanHD
                  DanH @Casey Kolb
                  last edited by

                  @Lunacy-Audio Am I right i thinking "VoiceAmountMultiplier": true / false should also be in that list?!

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

                  1 Reply Last reply Reply Quote 1
                  • Dan KorneffD
                    Dan Korneff @Casey Kolb
                    last edited by

                    @Lunacy-Audio said in HISE HEAVY ON GPU PROCESSING?:

                    OpenGL can be a setting in your Settings Floating Tile, so the user can choose which one to use.

                    "GraphicRendering" doesn't appear in my settings floating tile when I add HISE_USE_OPENGL_FOR_PLUGIN=1 in extra definitions menu. Is there something I need to do with Projucer to amek this available?

                    Dan Korneff - Producer / Mixer / Audio Nerd

                    NatanN d.healeyD 2 Replies Last reply Reply Quote 1
                    • NatanN
                      Natan @Dan Korneff
                      last edited by

                      @dustbro Same Here @Lunacy-Audio

                      1 Reply Last reply Reply Quote 1
                      • d.healeyD
                        d.healey @Dan Korneff
                        last edited by

                        @dustbro I think you need to add it to your custom settings floating tile as Fortune showed in his image a few posts back.

                        "GraphicRendering": true

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

                        Dan KorneffD 1 Reply Last reply Reply Quote 2
                        • Dan KorneffD
                          Dan Korneff @d.healey
                          last edited by

                          @d-healey i tried. Not showing up 🤷‍♂️🤷‍♂️

                          Dan Korneff - Producer / Mixer / Audio Nerd

                          1 Reply Last reply Reply Quote 0
                          • FortuneF
                            Fortune
                            last edited by Fortune

                            @d-healey Same here like @dustbro & @Natan "GraphicRendering": true doesn't make the opengl combobox show up in CusotomSettings floating tile.

                            I am also confused that, in order to make OpenGl enable:

                            Is HISE_USE_OPENGL_FOR_PLUGIN=1 enough?
                            Or should I do HISE_USE_OPENGL_FOR_PLUGIN=1 and "GraphicRendering": true both?

                            NatanN DanHD 2 Replies Last reply Reply Quote 0
                            • NatanN
                              Natan @Fortune
                              last edited by Natan

                              @Fortune It's Enough Here.
                              HISE_USE_OPENGL_FOR_PLUGIN=1

                              And No Extra Codes

                              DanHD 1 Reply Last reply Reply Quote 2
                              • DanHD
                                DanH @d.healey
                                last edited by

                                @d-healey FYI everyone, it seems my FloatingTile "FilterDisplay"s were causing a lot the GPU lag.

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

                                d.healeyD Dan KorneffD 2 Replies Last reply Reply Quote 1
                                • d.healeyD
                                  d.healey @DanH
                                  last edited by

                                  @DanH How many did you have displayed at one time?

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

                                  DanHD 1 Reply Last reply Reply Quote 0
                                  • DanHD
                                    DanH @d.healey
                                    last edited by DanH

                                    @d-healey 6..... And then a spectral analyser, 4 audio waveforms, a Goniometer, 2 tables, a sliderpack, and 3 sliders linked to LFO gains which would be constantly moving... lol

                                    But actually way back in the beginning of this project I noticed the lag (before all the extra stuff), and I never considered the Filterdisplays to be the issue, and removing them has made the biggest difference of all.

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

                                    1 Reply Last reply Reply Quote 1
                                    • DanHD
                                      DanH @Fortune
                                      last edited by

                                      @Fortune Ok so.... I was thinking the same thing and I just compiled my plugin and opened my 'settings' tab and there is the 'Use OpenGL' option! Weird!

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

                                      DanHD 1 Reply Last reply Reply Quote 1
                                      • DanHD
                                        DanH @DanH
                                        last edited by

                                        @DanH And I would also like to point out that selecting the 'yes' option here has completely sorted out any GPU lag, even on my 9 year old laptop! Bravo @Lunacy-Audio

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

                                        DanHD 1 Reply Last reply Reply Quote 0
                                        • DanHD
                                          DanH @DanH
                                          last edited by

                                          @DanH it's never quite that straightforward is it.... Selecting yes here means that the font in the button below now goes weird! lol

                                          Screenshot 2021-02-08 at 12.10.10.png

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

                                          1 Reply Last reply Reply Quote 0
                                          • DanHD
                                            DanH @Natan
                                            last edited by

                                            @Natan So it does't seem like the code "HISE_USE_OPENGL_FOR_PLUGIN=1" actually does anything to my plugin..

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

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

                                            20

                                            Online

                                            1.7k

                                            Users

                                            11.9k

                                            Topics

                                            103.6k

                                            Posts