Huge update to Layers!
I’m proud that the program is getting more usable with updates, and more visually appealing too! The thing I’m most proud of in this update is the huge speed upgrade to the layer algorithm.
First major fix is using insertWidget() instead of addWidget(). The former gets and index of the widget position in the layout instead of previously deleting the whole layout and redrawing it. Second major fix is to use a hash map to link the path to its corresponding layer. Previously, when the path asked for a layer update, it emitted a signal that iterated through all layers and updated them, now the hash table stored within the Timeline can search for that layer in O(1) instead of O(n). the difference is more noticable when many layers are added.
features
- Selected layer is now highlighted
- Expantion arrow is only displayed when there are keyframes to expand
- Keyframes are shown as dots on the layer itself, and as green diamonds 🔹when expanded. The dots get darker the more there are keyframes on that specific frame (Totally intended behaviour :D)
- Huge speed upgrade from
O(n)toO(1)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.