Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bc5d7291 authored by George Mount's avatar George Mount
Browse files

Further improve performance of VRR

Bug: 330765659
Bug: 330806626
Bug: 330818088
Bug: 330785773

Removed getTranslationX()/getTranslationY() calls during
invalidation.

Changed flag reading to use final constants.

Use int instead of long for duration millis comparison.

Use "switch" statement instead of consecutive "if"
statements.

Moved update time to updateDisplayListIfDirty() rather
than during invalidation in case invaliation happens
multiple times per draw.

Test: ran performance check. Now at 12% overhead
Change-Id: I10510f0f686f1430791e0ae3e5de6f99bad3593c
parent 46bc6e18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment