[CRD iOS] Investigate precalculation for the fling curve |
||
Issue descriptionCurrently the displacement of FlingTracker is calculated in runtime using this formula: x = T * v0 * (1-exp(-t/T)) The exp calculation can be potentially expensive. We may precalculate an array d[r] = 1-exp(-r) then calculate the displacement in runtime by: x = T * v0 * d[t/T] Precalculating d[r] will introduce more complex logic and reduce the precision of the result. More research is needed to see whether we can gain more by doing this.
,
Jun 23 2017
Cool. Then let's not do that. |
||
►
Sign in to add a comment |
||
Comment 1 by sergeyu@chromium.org
, May 25 2017