-
Notifications
You must be signed in to change notification settings - Fork 44
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
Demo app: slow renders animation #627
Conversation
… effect after adding the comet book to cart. Added a few ways to make the animation slow render on purpose
I think this PR closes #608 or the slow render does not cause an ANR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The animation is pretty cool and I love that you were able to keep it on-theme (astronomy!). Thanks!
I believe that it does not cause an ANR. The ANR detector polls the main thread for activity and requires it to fail a certain number of times in a row. The slow rendering approaches here I think are not quite enough to trigger that. @magda-woj has a follow-up PR in the works to |
Added a way to trigger slow rendering in the demo app.
SlowCometAnimation.kt
contains a jetpack compose animation of a "meteor shower" that's intentionally slowed down through delays, expensive drawing, and unnecessary random number generation. To see the animation, add any amount of The Comet Book (the last product on the product list) to the cart.