HISE Logo Forum
    • Categories
    • Register
    • Login

    Slow plugin loading when using a lot of filmstrips

    Scheduled Pinned Locked Moved General Questions
    7 Posts 2 Posters 296 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.
    • oskarshO
      oskarsh
      last edited by

      Can you defer the loading of the filmstrips to when the plugin is loaded to speed up the initial load?

      I am creating a plugin with a lot of filmstrips, basically videos and the plugin startup is very slow.

      breathing HISE

      oskarshO 1 Reply Last reply Reply Quote 0
      • oskarshO
        oskarsh @oskarsh
        last edited by

        @oskarsh I found out that the images are uncompressed into a bitmap format when loading which is probably killing the performances.

        Is there a better way than knobs to display videos in hise? Maybe a webview that can play the videos directly?

        breathing HISE

        Christoph HartC 1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @oskarsh
          last edited by

          @oskarsh yes, definitely a webview.

          oskarshO 1 Reply Last reply Reply Quote 0
          • oskarshO
            oskarsh @Christoph Hart
            last edited by

            @Christoph-Hart I refactored the code to use webviews playing the .mp4 directly much smoother and easier to handle! I have a array of .mp4 files that I shuffle thru while the plugin is running.

            This works fine in HISE however the exported plugin will only load the first video. I suspect that the others are loaded when needed and thus get not compiled with the plugin. Is there some behavior in HISE where only some assets get bundled with the JS?

            breathing HISE

            Christoph HartC 1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart @oskarsh
              last edited by

              @oskarsh yes the way it currently works is that HISE will only embed the resources that are requested by the webview in the current session - so in your case you might have to preload them all (or at least request them somehow) so that they end up in the resource folder.

              The other option is to not bother about embedding the webview and set a root folder outside of the repository, then make sure that the user has all the files in a folder and point the webview there.

              oskarshO 2 Replies Last reply Reply Quote 0
              • oskarshO
                oskarsh @Christoph Hart
                last edited by

                @Christoph-Hart just wondering if I put the videos into the images folder and not reference them they will not be copied alongside. So basically I would need to handle this myself with the installer script right?

                breathing HISE

                1 Reply Last reply Reply Quote 0
                • oskarshO
                  oskarsh @Christoph Hart
                  last edited by

                  @Christoph-Hart I was able to preload the videos in JavaScript but preloading around 14 videos is not suitable and makes the app actually very glitchy

                  breathing HISE

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

                  36

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.9k

                  Posts