diff options
| author | 2025-02-13 17:21:17 +0000 | |
|---|---|---|
| committer | 2025-02-14 16:59:24 +0000 | |
| commit | a1e84d0888dd976082e46129832ebdb2a234e83a (patch) | |
| tree | f1378bea688ce45ae4c8836272e32bc54958e8b8 /libs/androidfw/FileStream.cpp | |
| parent | c26379f212e327cbf9ee93b3f72fb08be07a1b82 (diff) | |
Limit interpolated axis values to set of valid values
Rouding the axis values to the nearest valid step value should keep the
var cache from missing repeatedly due to functionally identical axis
values. Formerly this was not a problem because the progress float was
rounded to the nearest animation frame. However that is no longer
occuring as it caused issues w/ non-linear interpolation.
Since different axes have different min and max values, we manually
adjust the step size to roughly target the same number of valid values
within that range. This gives us a good target, but also allows us to
make specific adjustments to keep hit-rate high depending on which
axes are more important visually.
Bug: 394840414
Test: Ran animation on device
Flag: NONE TextAnimator Memory Fix
Change-Id: I1800b71601ef10e1c2b9fd083134f312c8dd6711
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions