Skip to content

PAG lib是否支持在子线程中加载动画资源? #2474

Discussion options

You must be logged in to vote

1、对于 PAGView 或 PAGImageView 而言,如果 View 处于不可见的状态,是不会触发渲染的,如果是第一次加载,首帧涉及到构建渲染环境和缓存,会慢一些;
2、上屏只能在主线程哈,子线程无法上屏,你这边如果遇到性能问题,可以把具体的案例发出来,pag 已经发展了这么多年,基础的性能层面我们都考虑到了,你可以在任意的线程中使用 PAGView 或 PAGImageView

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@aSmartTortoise
Comment options

@kevingpqi123
Comment options

Answer selected by kevingpqi123
@aSmartTortoise
Comment options

@kevingpqi123
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants