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

动画播放帧率显著降低 #33

Open
guod13 opened this issue Jan 9, 2019 · 8 comments
Open

动画播放帧率显著降低 #33

guod13 opened this issue Jan 9, 2019 · 8 comments

Comments

@guod13
Copy link

guod13 commented Jan 9, 2019

播放 animated webp 在三星 Galaxy J3 pro (手机并不差)上帧率明显下降,本来一秒30帧的 webp, we用 chrome 播放很自然,播放起来感觉只有 10 帧

@zjupure
Copy link
Owner

zjupure commented Jan 9, 2019

@guod13 可以log看下1s播放了多少帧,只在Galaxy J3 pro上有问题吗,其他机型是否有类似问题。动画播放是handle message驱动的,主线程是否有其他耗时的逻辑导致掉帧了呢

能否提供下webp的图片,尝试使用demo project复现下呢?

@guod13
Copy link
Author

guod13 commented Jan 10, 2019

换用了 nexus5,nexus5x,问题同样存在,不过在相对高端的机型表现很好,如小米8,三星S8,这是
我用的 webp 文件(40 ms 一帧),以及播放该 webp 的 trace 文件webp_trace.zip

@jemon9
Copy link

jemon9 commented May 14, 2021

题主有解决吗,我这边也遇到了同样的问题

@gydhy8
Copy link

gydhy8 commented Jul 23, 2021

是同时播放相同的webp文件导致的吗?场景:列表中小图播放,然后点击查看大图再次播放相同的webp,多尝试几次就会出现播放变慢的问题

@ShowMeThe
Copy link

API 28 有个AnimatedImageDrawable支持Animated Webp,支持Buffer , File, res/raw , assests 的输入的,配合Glide还是可以用的。这个就基本是解决API<28以下的机器

@yushiwo
Copy link

yushiwo commented Feb 24, 2022

请问问题有解决吗?小米手机碰到同样问题,webp播放比较缓慢;同样的图用Fresco播放是正常的

@NBXXF
Copy link

NBXXF commented Feb 1, 2024

同问? 难道要换加载框架 工作量大了

@ysxlmk
Copy link

ysxlmk commented May 20, 2024

难道只有这个大佬这样,反射去改?https://blog.csdn.net/just_hu/article/details/124892781

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

No branches or pull requests

8 participants