Custom workspace = slow HISE



  • I'm using a custom workspace (JSON below) and it's causing HISE to take about 2.5x longer to open and to compile scripts. Usually HISE takes about 3 seconds to open but with this custom workspace it takes about 8.

    {
      "Type": "HorizontalTile",
      "Title": "Custom Workspace",
      "StyleData": {
      },
      "Font": "",
      "FontSize": 14.0,
      "LayoutData": {
        "ID": "CustomWorkspace",
        "Size": -0.5,
        "Folded": -1,
        "Visible": true,
        "ForceFoldButton": 0,
        "MinSize": -1
      },
      "ColourData": {
      },
      "Content": [
        {
          "Type": "VerticalTile",
          "StyleData": {
          },
          "Font": "",
          "FontSize": 14.0,
          "LayoutData": {
            "ID": "anonymous",
            "Size": -0.8338533541341654,
            "Folded": -1,
            "Visible": true,
            "ForceFoldButton": 0,
            "MinSize": -1
          },
          "ColourData": {
          },
          "Content": [
            {
              "Type": "HorizontalTile",
              "StyleData": {
              },
              "Font": "",
              "FontSize": 14.0,
              "LayoutData": {
                "ID": "anonymous",
                "Size": -0.4464843750000001,
                "Folded": -1,
                "Visible": true,
                "ForceFoldButton": 0,
                "MinSize": -1
              },
              "ColourData": {
              },
              "Content": [
                {
                  "Type": "GlobalConnectorScriptProcessor",
                  "StyleData": {
                  },
                  "Font": "",
                  "FontSize": 14.0,
                  "LayoutData": {
                    "ID": "anonymous",
                    "Size": 18.0,
                    "Folded": 0,
                    "Visible": true,
                    "ForceFoldButton": 0,
                    "MinSize": -1
                  },
                  "ColourData": {
                  },
                  "ProcessorId": "",
                  "Index": -1
                },
                {
                  "Type": "Tabs",
                  "StyleData": {
                  },
                  "Font": "",
                  "FontSize": 14.0,
                  "LayoutData": {
                    "ID": "anonymous",
                    "Size": -0.8995405226837091,
                    "Folded": -1,
                    "Visible": true,
                    "ForceFoldButton": 0,
                    "MinSize": -1
                  },
                  "ColourData": {
                  },
                  "Content": [
                    {
                      "Type": "ScriptEditor",
                      "StyleData": {
                      },
                      "Font": "",
                      "FontSize": 14.0,
                      "LayoutData": {
                        "ID": "anonymous",
                        "Size": -0.5,
                        "Folded": 0,
                        "Visible": true,
                        "ForceFoldButton": 0,
                        "MinSize": -1
                      },
                      "ColourData": {
                      },
                      "ProcessorId": "",
                      "Index": -1
                    },
                    {
                      "Type": "ScriptEditor",
                      "StyleData": {
                      },
                      "Font": "",
                      "FontSize": 14.0,
                      "LayoutData": {
                        "ID": "anonymous",
                        "Size": -0.5,
                        "Folded": 0,
                        "Visible": true,
                        "ForceFoldButton": 0,
                        "MinSize": -1
                      },
                      "ColourData": {
                      },
                      "ProcessorId": "",
                      "Index": -1
                    },
                    {
                      "Type": "ScriptEditor",
                      "StyleData": {
                      },
                      "Font": "",
                      "FontSize": 14.0,
                      "LayoutData": {
                        "ID": "anonymous",
                        "Size": -0.5,
                        "Folded": 0,
                        "Visible": true,
                        "ForceFoldButton": 0,
                        "MinSize": -1
                      },
                      "ColourData": {
                      },
                      "ProcessorId": "",
                      "Index": -1
                    },
                    {
                      "Type": "ScriptEditor",
                      "StyleData": {
                      },
                      "Font": "",
                      "FontSize": 14.0,
                      "LayoutData": {
                        "ID": "anonymous",
                        "Size": -0.5,
                        "Folded": 0,
                        "Visible": true,
                        "ForceFoldButton": 0,
                        "MinSize": -1
                      },
                      "ColourData": {
                      },
                      "ProcessorId": "",
                      "Index": -1
                    },
                    {
                      "Type": "ScriptEditor",
                      "StyleData": {
                      },
                      "Font": "",
                      "FontSize": 14.0,
                      "LayoutData": {
                        "ID": "anonymous",
                        "Size": -0.5,
                        "Folded": 0,
                        "Visible": true,
                        "ForceFoldButton": 0,
                        "MinSize": -1
                      },
                      "ColourData": {
                      },
                      "ProcessorId": "",
                      "Index": -1
                    }
                  ],
                  "CurrentTab": 2
                },
                {
                  "Type": "VerticalTile",
                  "StyleData": {
                  },
                  "Font": "",
                  "FontSize": 14.0,
                  "LayoutData": {
                    "ID": "anonymous",
                    "Size": -0.3307332293291732,
                    "Folded": -1,
                    "Visible": true,
                    "ForceFoldButton": 0,
                    "MinSize": -1
                  },
                  "ColourData": {
                  },
                  "Content": [
                    {
                      "Type": "ApiCollection",
                      "StyleData": {
                      },
                      "Font": "",
                      "FontSize": 14.0,
                      "LayoutData": {
                        "ID": "anonymous",
                        "Size": -0.227874276261373,
                        "Folded": 0,
                        "Visible": true,
                        "ForceFoldButton": 0,
                        "MinSize": -1
                      },
                      "ColourData": {
                      }
                    },
                    {
                      "Type": "Tabs",
                      "StyleData": {
                      },
                      "Font": "",
                      "FontSize": 14.0,
                      "LayoutData": {
                        "ID": "anonymous",
                        "Size": -0.772125723738627,
                        "Folded": -1,
                        "Visible": true,
                        "ForceFoldButton": 0,
                        "MinSize": -1
                      },
                      "ColourData": {
                      },
                      "Content": [
                        {
                          "Type": "Console",
                          "StyleData": {
                          },
                          "Font": "",
                          "FontSize": 14.0,
                          "LayoutData": {
                            "ID": "anonymous",
                            "Size": -0.5,
                            "Folded": 0,
                            "Visible": true,
                            "ForceFoldButton": 0,
                            "MinSize": -1
                          },
                          "ColourData": {
                          }
                        }
                      ],
                      "CurrentTab": 0
                    }
                  ]
                }
              ]
            },
            {
              "Type": "HorizontalTile",
              "StyleData": {
              },
              "Font": "",
              "FontSize": 14.0,
              "LayoutData": {
                "ID": "anonymous",
                "Size": -0.5535156250000001,
                "Folded": -1,
                "Visible": true,
                "ForceFoldButton": 0,
                "MinSize": -1
              },
              "ColourData": {
              },
              "Content": [
                {
                  "Type": "GlobalConnectorScriptProcessor",
                  "StyleData": {
                  },
                  "Font": "",
                  "FontSize": 14.0,
                  "LayoutData": {
                    "ID": "anonymous",
                    "Size": 18.0,
                    "Folded": 0,
                    "Visible": true,
                    "ForceFoldButton": 0,
                    "MinSize": -1
                  },
                  "ColourData": {
                  },
                  "ProcessorId": "",
                  "Index": -1
                },
                {
                  "Type": "Tabs",
                  "StyleData": {
                  },
                  "Font": "",
                  "FontSize": 14.0,
                  "LayoutData": {
                    "ID": "anonymous",
                    "Size": -0.4868675906376901,
                    "Folded": -1,
                    "Visible": true,
                    "ForceFoldButton": 0,
                    "MinSize": -1
                  },
                  "ColourData": {
                  },
                  "Content": [
                    {
                      "Type": "ScriptEditor",
                      "StyleData": {
                      },
                      "Font": "",
                      "FontSize": 14.0,
                      "LayoutData": {
                        "ID": "anonymous",
                        "Size": -0.5,
                        "Folded": 0,
                        "Visible": true,
                        "ForceFoldButton": 0,
                        "MinSize": -1
                      },
                      "ColourData": {
                      },
                      "ProcessorId": "",
                      "Index": -1
                    },
                    {
                      "Type": "VerticalTile",
                      "Title": "Interface Designer",
                      "StyleData": {
                      },
                      "Font": "",
                      "FontSize": 14.0,
                      "LayoutData": {
                        "ID": "anonymous",
                        "Size": -0.5,
                        "Folded": -1,
                        "Visible": true,
                        "ForceFoldButton": 0,
                        "MinSize": -1
                      },
                      "ColourData": {
                      },
                      "Content": [
                        {
                          "Type": "VisibilityToggleBar",
                          "StyleData": {
                          },
                          "Font": "",
                          "FontSize": 14.0,
                          "LayoutData": {
                            "ID": "anonymous",
                            "Size": 32.0,
                            "Folded": 0,
                            "Visible": true,
                            "ForceFoldButton": 0,
                            "MinSize": -1
                          },
                          "ColourData": {
                          },
                          "IconIds": [],
                          "Alignment": 36
                        },
                        {
                          "Type": "ScriptComponentList",
                          "StyleData": {
                          },
                          "Font": "",
                          "FontSize": 14.0,
                          "LayoutData": {
                            "ID": "anonymous",
                            "Size": -0.2000753732976092,
                            "Folded": 0,
                            "Visible": true,
                            "ForceFoldButton": 0,
                            "MinSize": -1
                          },
                          "ColourData": {
                          },
                          "ProcessorId": "",
                          "Index": -1
                        },
                        {
                          "Type": "HorizontalTile",
                          "StyleData": {
                          },
                          "Font": "",
                          "FontSize": 14.0,
                          "LayoutData": {
                            "ID": "anonymous",
                            "Size": -0.9857296201351867,
                            "Folded": -1,
                            "Visible": true,
                            "ForceFoldButton": 0,
                            "MinSize": -1
                          },
                          "ColourData": {
                          },
                          "Content": [
                            {
                              "Type": "ScriptContent",
                              "StyleData": {
                              },
                              "Font": "",
                              "FontSize": 14.0,
                              "LayoutData": {
                                "ID": "anonymous",
                                "Size": -0.5,
                                "Folded": 0,
                                "Visible": true,
                                "ForceFoldButton": 0,
                                "MinSize": -1
                              },
                              "ColourData": {
                              },
                              "ProcessorId": "",
                              "Index": -1
                            }
                          ]
                        },
                        {
                          "Type": "InterfacePropertyEditor",
                          "StyleData": {
                          },
                          "Font": "",
                          "FontSize": 14.0,
                          "LayoutData": {
                            "ID": "anonymous",
                            "Size": -0.3141950065672037,
                            "Folded": 0,
                            "Visible": true,
                            "ForceFoldButton": 0,
                            "MinSize": -1
                          },
                          "ColourData": {
                          },
                          "ProcessorId": "",
                          "Index": -1
                        }
                      ]
                    },
                    {
                      "Type": "ServerController",
                      "StyleData": {
                      },
                      "Font": "",
                      "FontSize": 14.0,
                      "LayoutData": {
                        "ID": "anonymous",
                        "Size": -0.5,
                        "Folded": 0,
                        "Visible": true,
                        "ForceFoldButton": 0,
                        "MinSize": -1
                      },
                      "ColourData": {
                      },
                      "ProcessorId": "",
                      "Index": -1
                    }
                  ],
                  "CurrentTab": 1
                },
                {
                  "Type": "HorizontalTile",
                  "StyleData": {
                  },
                  "Font": "",
                  "FontSize": 14.0,
                  "LayoutData": {
                    "ID": "anonymous",
                    "Size": -0.2371109064573622,
                    "Folded": -1,
                    "Visible": true,
                    "ForceFoldButton": 0,
                    "MinSize": -1
                  },
                  "ColourData": {
                  },
                  "Content": [
                    {
                      "Type": "GlobalConnectorScriptProcessor",
                      "StyleData": {
                      },
                      "Font": "",
                      "FontSize": 14.0,
                      "LayoutData": {
                        "ID": "anonymous",
                        "Size": 18.0,
                        "Folded": 0,
                        "Visible": true,
                        "ForceFoldButton": 0,
                        "MinSize": -1
                      },
                      "ColourData": {
                      },
                      "ProcessorId": "",
                      "Index": -1
                    },
                    {
                      "Type": "Tabs",
                      "StyleData": {
                      },
                      "Font": "",
                      "FontSize": 14.0,
                      "LayoutData": {
                        "ID": "anonymous",
                        "Size": -0.5,
                        "Folded": -1,
                        "Visible": true,
                        "ForceFoldButton": 0,
                        "MinSize": -1
                      },
                      "ColourData": {
                      },
                      "Content": [
                        {
                          "Type": "ScriptEditor",
                          "StyleData": {
                          },
                          "Font": "",
                          "FontSize": 14.0,
                          "LayoutData": {
                            "ID": "anonymous",
                            "Size": -0.5,
                            "Folded": 0,
                            "Visible": true,
                            "ForceFoldButton": 0,
                            "MinSize": -1
                          },
                          "ColourData": {
                          },
                          "ProcessorId": "",
                          "Index": -1
                        },
                        {
                          "Type": "ScriptEditor",
                          "StyleData": {
                          },
                          "Font": "",
                          "FontSize": 14.0,
                          "LayoutData": {
                            "ID": "anonymous",
                            "Size": -0.5,
                            "Folded": 0,
                            "Visible": true,
                            "ForceFoldButton": 0,
                            "MinSize": -1
                          },
                          "ColourData": {
                          },
                          "ProcessorId": "",
                          "Index": -1
                        },
                        {
                          "Type": "ScriptEditor",
                          "StyleData": {
                          },
                          "Font": "",
                          "FontSize": 14.0,
                          "LayoutData": {
                            "ID": "anonymous",
                            "Size": -0.5,
                            "Folded": 0,
                            "Visible": true,
                            "ForceFoldButton": 0,
                            "MinSize": -1
                          },
                          "ColourData": {
                          },
                          "ProcessorId": "",
                          "Index": -1
                        }
                      ],
                      "CurrentTab": 1
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
    


  • Any idea why the custom workspace would slow down HISE?



  • @d-healey if you tell me how to load this into my rig, I'll give it a go and see what happens.



  • Thanks!

    Probably the quickest way is to just load my entire editorData.json file. This goes in hise's config folder, make sure you backup/rename yours before you put mine in there though.

    editorData.json.zip



  • your custom workspace json just makes HISE crash over here.



  • @dustbro How did you load it?



  • @d-healey I take that back... Accidentally deleted the config instead of replacing

    I dropped it into AppData/HISE on my pc and HISE appears to be working properly. I don't notice any sluggishness.



  • Did HISE load up at normal speed? That's where I'm noticing the most slowness.



  • @d-healey I didn't notice a difference.



  • @dustbro Hmm, must be something else with my config then. Thanks for testing it, enjoy your new custom workspace 😛



  • Do you have any markdown panels in your layout? Because they will initiate a "hidden" HISE instance for the dynamic help things.



  • @Christoph-Hart I don't have one in the custom workspace but I do have a markdown editor tab in the scripting workspace. I've just removed this and relaunched HISE and the slow startup issue was still there.

    I tested renaming my editorData.json and HISE opened up (with default layout) and normal speed.

    Unrelated, but I also noticed that load JSON is greyed out when you right click on the top level of the custom workspace

    7df87d46-1779-4f2d-8c48-a68f25a773b7-image.png



  • Has the current project a lot of sample maps / midi files? They are initialised on startup so it might be the reason if you are working on a big project (Percx as about 1200 samplemaps and Midifiles so it takes 3-5 seconds if I start HISE with the percx project).



  • New empty project here, 8 - 10 seconds to open. Maybe a GNU/Linux only issue?



  • I just tested on Windows and no problem there so I think it's specific to my OS and possibly to my general setup. I'll try on my other GNU/Linux system.



  • Definitely seems to be OS specific, I just tested on Linux Mint and had the same issue as my main Debian system.



  • Just tested on MacOS, works fine...



  • Try compiling the plugin version of HISE and then load it in a DAW and close reopen the window. If the lag is also happening there you know it's something related to the UI.



  • @Christoph-Hart Good thinking, I'll do that now



  • The plugin version doesn't seem to read from the same editorData file as the standalone version. Each time I open it it's reset to the default layout, even if I make changes to the layout in the plugin.


Log in to reply
 

17
Online

1.1k
Users

3.8k
Topics

33.3k
Posts