web端使用代码播放pag文件掉帧 #2402
Answered
by
kevingpqi123
hht123-hht
asked this question in
Q&A
-
真实动画视频 但是通过web端代码播放该pag文件会掉帧,主要表现在手拿起物品后未在空中悬停1s pag文件 |
Beta Was this translation helpful? Give feedback.
Answered by
kevingpqi123
Aug 7, 2024
Replies: 2 comments
-
我也遇到了。pag播放大型动效的时候,会出现卡顿,严重掉帧的现象。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
大家多看下 pag 官网上面的文章:https://pag.art/docs/optimization.html |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kevingpqi123
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
大家多看下 pag 官网上面的文章:https://pag.art/docs/optimization.html
这里的动效其实不复杂,采用纯矢量的实现方式可以获得很好的性能,BMP 预合成本质上就是视频,在 Web 端视频解码始终是性能瓶颈。
后续大家遇到性能问题,首先需要分析的就是素材,不是所有的 pag 的文件的性能都是一样,而是和素材复杂度强相关。