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

PAG动画播放时占用系统cpu资源高,跟播放视频一个级别。 #2173

Open
ncwuguowei opened this issue Mar 5, 2024 · 2 comments
Assignees

Comments

@ncwuguowei
Copy link

【版本信息】

4.3.43

【平台信息】

Android 原生

【预期的表现】

PAG动画播放时占用系统cpu资源高,跟播放视频一个级别。

【实际的情况】

使用android 官网demo,引入最新的4.3.43版本。
发现动画在播方式cpu占用非常高。,到了一般的视频播放程序占用级别,和腾讯视频播放时cpu占用几乎等同。
image

image

image

腾讯视频播放占用
image

【Demo及附件】

官网demo,lib库使用4.3.43

@kevingpqi123
Copy link
Collaborator

建议直接说你遇到的问题,这个对比能说明啥,不是同一个维度的内容对比有啥意义,并且 9% 的 CPU 占用也不算高

@ncwuguowei
Copy link
Author

问题是动画播放时一直占用9%的cpu,是比较高的占用了。
对比ios版本的库在使用了开启内存缓存时,cpu占用明显降低很多,安卓版本设置setCacheAllFramesInMemory(true)后无效果

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

2 participants