Blender Git Commit Log

Git Commits -> Revision 2aff243

Revision 2aff243 by Joshua Leung (master)
March 14, 2014, 22:47 (GMT)
Patch T36209: Use binary search function for evaluating F-Curves

This provides a speedup to evaluating long F-Curves in fcurve_eval_keyframes()
by using the pre-existing binarysearch_bezt_index() function (used for keyframe
insertion) to find the relevant BezTriple on the FCurve at the current evaltime.
The current code loops over all BezTriples (sometimes not even breaking from the
loop after cvalue has been evaluated).

Reviewer Notes:
- Unlike in the original patch, we use the old/existing logic instead of
checking that (exact == true). See comments in code and also on the tracker
entry for this patch for more details.

Patch By: Josh Wedlake

Commit Details:

Full Hash: 2aff2435f016072f8cb216a13bc05340d3934d1e
Parent Commit: 0dd52d1
Lines Changed: +58, -45

1 Modified Path:

/source/blender/blenkernel/intern/fcurve.c (+58, -45) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021