Done: refactor sequencing non-scalars
This commit is contained in:
parent
2e02c2e2be
commit
c9fe91db30
1 changed files with 7 additions and 0 deletions
|
@ -14,6 +14,13 @@ export type InterpolationTriple = {
|
||||||
progression: number
|
progression: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @remarks This new implementation supports sequencing non-scalars, but it's also heavier
|
||||||
|
// on the GC. This shouldn't be a problem for the vast majority of users, but it's also a
|
||||||
|
// low-hanging fruit for perf optimization.
|
||||||
|
// It can be improved by:
|
||||||
|
// 1. Not creating a new InterpolationTriple object on every change
|
||||||
|
// 2. Caching propConfig.sanitize(value)
|
||||||
|
|
||||||
export default function interpolationTripleAtPosition(
|
export default function interpolationTripleAtPosition(
|
||||||
trackP: Pointer<TrackData | undefined>,
|
trackP: Pointer<TrackData | undefined>,
|
||||||
timeD: IDerivation<number>,
|
timeD: IDerivation<number>,
|
||||||
|
|
Loading…
Reference in a new issue