Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show some complexity measurement that approximates the cost of displaying a particular flare animation #287

Open
jefflim-google opened this issue Dec 1, 2020 · 1 comment

Comments

@jefflim-google
Copy link

jefflim-google commented Dec 1, 2020

Background

We are using flare animations in many portions of Google Pay, and memory consumption and frame rate are a big concern. Right now, there are no clear guidelines for content creators that will give them feedback on the cost of rendering their work.

Request

Ideally, there would be some human-digestible real-time feedback that would give artists statistics as they edit their animations to help them assess the complexity of their animation, and an idea of what they can do to improve it.

e.g.

xxx Shadows used
yyy Clip layers used
zzz ....

This animation should play at 60fps smoothly on a Pixel 1 device and iPhone 6s and is estimated to consume xx kb/Mb of memory.

(This text is purely for illustrative purposes..)

@dnfield
Copy link
Contributor

dnfield commented Dec 4, 2020

Some low hanging fruit here would probably be anything that results in a call to canvas.saveLayer, which will be expensive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants