请问提交上屏的API是否一定要在主线程执行,是否可以开放一个API让业务自行传入自定义的渲染Queue? #499
-
目前业务有循环播放PAG的场景,Instrument Time Profile看到的瓶颈在libpag. |
Beta Was this translation helpful? Give feedback.
Answered by
kevingpqi123
Aug 30, 2022
Replies: 1 comment 4 replies
-
上屏是需要在主线程 另外,pag 是支持离屏渲染的,通过PAGPlayer、PAGSurface的相关接口,支持自由控制渲染、播放逻辑 |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
kevingpqi123
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
上屏是需要在主线程
如果遇到性能瓶颈:首先需要看下素材的优化空间,相同的动画不同的实现方式性能差异特别大,让你们的设计师看下这篇文档:
https://pag.art/docs/optimization.html
另外,pag 是支持离屏渲染的,通过PAGPlayer、PAGSurface的相关接口,支持自由控制渲染、播放逻辑