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

Demo app: slow renders animation #627

Merged
merged 7 commits into from
Oct 15, 2024

Conversation

magda-woj
Copy link
Contributor

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.

@magda-woj magda-woj requested a review from a team as a code owner October 9, 2024 16:00
@marandaneto
Copy link
Member

marandaneto commented Oct 15, 2024

I think this PR closes #608 or the slow render does not cause an ANR?

Copy link
Contributor

@breedx-splk breedx-splk left a 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!

@breedx-splk
Copy link
Contributor

I think this PR closes #608 or the slow render does not cause an ANR?

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 Thread.sleep() in the main thread to cause an ANR. 😁

@breedx-splk breedx-splk merged commit 75dbce5 into open-telemetry:main Oct 15, 2024
3 checks passed
@magda-woj magda-woj deleted the slow-renders branch October 16, 2024 07:40
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

Successfully merging this pull request may close these issues.

3 participants