Unordered Stack...
-
What is it made for?
-
@ustk I hadn't noticed this in the API until your post, looks interesting!
-
@d-healey Yeah, I tried to grab some info in the source, it seems related to event list kind of thing to display... We'll see :)
-
It's a stack with fast insert / removal - if you remove a element, it just moves the last element into that position (which makes it "Unordered"). You can use this to keep track of currently played events etc - I mainly use it for communication with OpenGL.
-
@Christoph-Hart Cool! But midiList is fast too so why should it be better? It's even faster?
-
Insertion / Removal is very fast, plus the underlying data type is float, so you can reference it as a
Buffer
object which is required if you need to pass uniform arrays to OpenGL.Performance wise it should not be a big difference to the MidiList, but depending on the use case, it's simpler to use.
And If you right click on it in the ScriptWatchTable, you will see a custom data inspector which is also helpful during debugging.