-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keyframe::GetRepeatFraction(): Binary search, skipping when constant
The old implementation did a linear scan over the values. This was slow with slowly changing keyframes. This new implementation skips over constant (when rounded) segments and performs binary search in (possibly long) interpolated segments to find the X coordinates where a change occurs quickly.
- Loading branch information
1 parent
f00edba
commit 1fbdc52
Showing
1 changed file
with
109 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters