HALion script/Lua optimization tips

Wow! 8 seconds is an eternity these days. Making use of Sections is critical to getting that load time down. Steinberg has removed the documentation but there is a limitation in pixels per bitmap which causes assets not to load on some computers. I can’t remember the exact dimensions but it’s around 1000x8000. I’ve found that you can get more resolution and keep within standards by chopping up the frames horizontally. For example, if you have a knob that is 100x100 and you want 200 frames you will and up with a 100x20000 bitmap. This could cause issues when loading on some computers along with being overall inefficient. A workaround is to cut each frame into quarters. So you end up with 100x25 individual frames. Now you’ll have 4 sets of bitmaps that are 100x2500. This is much more manageable for HALion. You can put them on the same bitmap horizontally which would result in a 400x2500 bitmap. You then create Sections out of them and line up 4 knobs together on your macro page and they will have the illusion of one single knob.

1 Like