This PR replaces the calculated transform comparison from creating a transform string and comparing the string, to comparing the Delta features directly.
This makes the delta comparison 100x faster in Safari and 20x faster in Chrome for an overall 1% per-frame reduction in script time.
There's also a little bit of a drive-by where projection metrics are recorded only if MotionDebug is present on window.
This PR replaces the calculated transform comparison from creating a transform string and comparing the string, to comparing the
Delta
features directly.This makes the delta comparison 100x faster in Safari and 20x faster in Chrome for an overall 1% per-frame reduction in script time.
There's also a little bit of a drive-by where projection metrics are recorded only if
MotionDebug
is present onwindow
.