Done: refactor sequencing non-scalars

This commit is contained in:
Aria Minaei 2021-11-14 21:28:07 +01:00
parent 2e02c2e2be
commit c9fe91db30

View file

@ -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>,