Blender Git Commit Log

Git Commits -> Revision b1a6ef4

Revision b1a6ef4 by Joshua Leung (master)
November 17, 2009, 08:27 (GMT)
DopeSheet Drawing Optimisation (Long Keyframes):

Optimised the code for drawing Long Keyframes by making the code use a Red-Black Tree instead of performing linear search over all the (potentially unsorted) BezTriples to find the previous one with a matching value.

As a result, the Redraw Timer (Ctrl Alt T) tool reports that the time needed to draw the keyframes region on a heavy imported-BVH file has dropped from an average of 270ms per draw, to about 60ms. The view is also freely pannable as a result.

Note that this code will currently have some issues when there are more than 4 BezTriples occurring on the same frame, but that should only happen when transforming keyframes anyway. This will be addressed as necessary.

Commit Details:

Full Hash: b1a6ef4bfc1275c9b06adca9cee125a2d3fa8df9
SVN Revision: 24601
Parent Commit: 45e3863
Lines Changed: +138, -31

1 Modified Path:

/source/blender/editors/animation/keyframes_draw.c (+138, -31) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021