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
Too fast Animation of APNG loaded via Glide into RecyclerView #176
Comments
We can reproduce it every time without RecyclerView. Image in question: Code in question: Please let us know if we can help with debugging it somehow |
It also reproduces in isolation with empty activity like this: class TestActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val layout = FrameLayout(this)
val imageView = ImageView(this)
imageView.layoutParams = LinearLayout.LayoutParams(Utils.dpToPx(this, 64), Utils.dpToPx(this, 64))
layout.addView(imageView)
setContentView(layout)
Glide.with(this)
.load("https://mastodon.derg.nz/system/custom_emojis/images/000/000/208/original/1ba4096c050a3b1b.png")
.into(imageView)
}
} so it has nothing to do with RecyclerView in or custom targets in our case |
the reason of the problem of this image url (https://mastodon.derg.nz/system/custom_emojis/images/000/000/208/original/1ba4096c050a3b1b.png) |
@penfeizhou this is temp fix |
Issue Info
Issue Description and Steps
Too fast Animation of APNG inside RecyclerView loaded via Glide
Sometimes when loading a bunch of APNGs into a RecyclerView some of them are speed up by roughly 2x.
This happens inside the example app ~1/20 of the time when loading 10 initial images.
Slowly adding them exhibits the same behavior, but is much more frequently reproducible. When APNGs are loaded via button click, they animate faster until automatic scrolling kicks in.
Scrolling or refreshing in general seems to reset them to "normal" speeds.
I attached some recorded videos as well to showcase it.
Note:
https://user-images.githubusercontent.com/81491426/214593147-d2445b5b-b871-4502-908a-370d5ed29bd2.mp4
https://user-images.githubusercontent.com/81491426/214593156-e810a1ca-9e8e-4670-805e-716b24ece496.mp4
The text was updated successfully, but these errors were encountered: