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.
    • Dan KorneffD
      Dan Korneff @DanH
      last edited by

      @DanH said in HISE HEAVY ON GPU PROCESSING?:

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

      Bummer! I was hoping that was the magic cure

      Dan Korneff - Producer / Mixer / Audio Nerd

      DanHD 2 Replies Last reply Reply Quote 0
      • DanHD
        DanH @Dan Korneff
        last edited by

        @dustbro Well the OpenGL setting is definitely going to help this. We need to figure out how to set it 'on' via scripting now! @Christoph-Hart any ideas Christoph?

        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

          @dustbro @Fortune @d-healey @Natan @Tania-Ghosh Ok so I found this thread:

          Link Preview Image
          Open GL

          I still have issue where on Windows everything is smooth but on Mac is really laggy :(

          favicon

          Forum (forum.hise.audio)

          @Lunacy-Audio found the setting in this doc: StandalonePopupComponents.cpp – line 128

          #if !HISE_USE_OPENGL_FOR_PLUGIN
          	properties[(int)Properties::UseOpenGL] = false;
          #endif
          

          I've set it to 'true' and recompiled HISE and now I have the 'Use OpenGL' option in my CustomSettings window :)

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

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

            @dustbro Are you Mac or PC? Changing the OpenGL setting has made a huge difference on Mac, but the reverse is true on PC!

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

            Dan KorneffD 2 Replies Last reply Reply Quote 0
            • Dan KorneffD
              Dan Korneff @DanH
              last edited by

              @DanH said in HISE HEAVY ON GPU PROCESSING?:

              Are you Mac or PC?

              Both

              Dan Korneff - Producer / Mixer / Audio Nerd

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

                @dustbro did you test it on both? What was your outcome? I'm now finding on Mac that the the general resolution is not as high when OpenGL is on, knobs and texts look more blocky.... :(

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

                Dan KorneffD 2 Replies Last reply Reply Quote 0
                • Dan KorneffD
                  Dan Korneff @DanH
                  last edited by

                  @DanH said in HISE HEAVY ON GPU PROCESSING?:

                  did you test it on both?

                  Not yet. I'm gonna test out a version with the FilterDisplay disabled first, then trying OpenGL. I'll post an update when I have some info.

                  Dan Korneff - Producer / Mixer / Audio Nerd

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

                    @dustbro Cool, so FYI it seems you'll need the 'HISE_USE_OPENGL_FOR_PLUGIN=1' definition as well as the '"GraphicRendering": true' solution noted in the thread above in order to test the OpenGL stuff...

                    I had just removed it and, whilst the UseOpenGL box was still in the settings window, it didn't change anything.

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

                    1 Reply Last reply Reply Quote 3
                    • Dan KorneffD
                      Dan Korneff @DanH
                      last edited by

                      @DanH said in HISE HEAVY ON GPU PROCESSING?:

                      I'm now finding on Mac that the the general resolution is not as high when OpenGL is on, knobs and texts look more blocky....

                      I'm not seeing any quality issues due to OpenGL on mac or pc. I DO, however, have an unrelated image quality issue I need to figure out.

                      Dan Korneff - Producer / Mixer / Audio Nerd

                      1 Reply Last reply Reply Quote 0
                      • Dan KorneffD
                        Dan Korneff @DanH
                        last edited by

                        @DanH said in HISE HEAVY ON GPU PROCESSING?:

                        Changing the OpenGL setting has made a huge difference on Mac, but the reverse is true on PC!

                        Definitely seeing a benefit on Mac. Testing PC now.

                        Dan Korneff - Producer / Mixer / Audio Nerd

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

                          @DanH @dustbro Not sure if this helps, but you can also manually toggle it in your product's General Settings:

                          <?xml version="1.0" encoding="UTF-8"?>
                          
                          <GLOBAL_SETTINGS DISK_MODE="0" SCALE_FACTOR="1.0" VOICE_AMOUNT_MULTIPLIER="2"
                                           GLOBAL_BPM="-1.0" MIDI_CHANNELS="1" SAMPLES_FOUND="1" OPEN_GL="0"/>
                          

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

                          NatanN 1 Reply Last reply Reply Quote 2
                          • orangeO
                            orange @Dan Korneff
                            last edited by

                            @dustbro said in HISE HEAVY ON GPU PROCESSING?:

                            @DanH said in HISE HEAVY ON GPU PROCESSING?:

                            Changing the OpenGL setting has made a huge difference on Mac, but the reverse is true on PC!

                            Definitely seeing a benefit on Mac. Testing PC now.

                            I think so. It doesn't solve the mysterious crash problem on startup but definately speeds up.

                            develop Branch / XCode 13.1
                            macOS Monterey / M1 Max

                            1 Reply Last reply Reply Quote 1
                            • NatanN
                              Natan
                              last edited by

                              Samplitude Shows Blank Screen When The OpenGL Is Enabled :(
                              @Lunacy-Audio The Setting For Disabling OpenGL won't Show Up At My End, You Have Any Advice?

                              @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.

                              1 Reply Last reply Reply Quote 0
                              • NatanN
                                Natan @Casey Kolb
                                last edited by

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

                                @DanH @dustbro Not sure if this helps, but you can also manually toggle it in your product's General Settings:

                                <?xml version="1.0" encoding="UTF-8"?>
                                
                                <GLOBAL_SETTINGS DISK_MODE="0" SCALE_FACTOR="1.0" VOICE_AMOUNT_MULTIPLIER="2"
                                                 GLOBAL_BPM="-1.0" MIDI_CHANNELS="1" SAMPLES_FOUND="1" OPEN_GL="0"/>
                                

                                Thank You :)

                                1 Reply Last reply Reply Quote 0
                                • Dan KorneffD
                                  Dan Korneff
                                  last edited by

                                  I think it depends on the OpenGL version installed on your computer.

                                  https://forum.juce.com/t/opengl-not-working-black-screen/31182/3

                                  from the link: (I haven't tried it yet)

                                  you can add in your own OpenGL version check before doing any rendering with something like this:

                                  auto ver = String::fromUTF8 ((const char*) glGetString (GL_VERSION));
                                  

                                  and then fall back to the software renderer if it’s too old.

                                  Dan Korneff - Producer / Mixer / Audio Nerd

                                  NatanN 1 Reply Last reply Reply Quote 1
                                  • NatanN
                                    Natan @Dan Korneff
                                    last edited by

                                    @dustbro said in HISE HEAVY ON GPU PROCESSING?:

                                    u can add in your own OpenGL version check before doing any rendering with something like this:

                                    Thank You Sir
                                    Where Should I Add This Code?

                                    auto ver = String::fromUTF8 ((const char*) glGetString (GL_VERSION));
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post

                                    8

                                    Online

                                    1.7k

                                    Users

                                    11.9k

                                    Topics

                                    103.2k

                                    Posts