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

Bug: pausing a GIF animation causes it to use more CPU #7

Open
AndroidDeveloperLB opened this issue Sep 9, 2018 · 3 comments
Open

Comments

@AndroidDeveloperLB
Copy link
Contributor

It's called "busy spinning" or "busy waiting".

image

Attached sample project.

GifTest2.zip

@AndroidDeveloperLB
Copy link
Contributor Author

I think I got it much better, as such:

https://stackoverflow.com/a/52251491/878126

@AndroidDeveloperLB
Copy link
Contributor Author

I think it might need some more work, but the pausing and resuming works much better.

@AndroidDeveloperLB
Copy link
Contributor Author

I think I've made the solution of using HandlerThread much better.
Please check it out.

Attached here a POC for it.

GifTest2.zip

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

1 participant