engine icon indicating copy to clipboard operation
engine copied to clipboard

安卓手机加载纹理视频,丢帧严重

Open xujie-phper opened this issue 1 year ago • 2 comments

Describe the bug 使用官方示例即可:https://galacean.antgroup.com/engine/examples/latest/video-background

Additional context Add any other context about the problem here.

Galacean 版本: 1.0.4

xujie-phper avatar Jul 03 '24 03:07 xujie-phper

可以使用大于或等于 1.1 版本的引擎试试,在 1.1 版本对视频播放做过优化。

cptbtptpbcptdtptp avatar Jul 03 '24 05:07 cptbtptpbcptdtptp

此外可以检查您的项目中更新视频源图片(setImageSource)的回调使用的是视频元素的 requestVideoFrameCallback 还是引擎的 onUpdate,有开发者曾遇到在某些 App 中视频元素的回调间隔异常久也会导致视频播放卡顿,如果是这种情况,改为 onUpdate 也可以解决你的问题。

cptbtptpbcptdtptp avatar Sep 29 '24 04:09 cptbtptpbcptdtptp

建议使用 TextureUsage.Dynamic 的纹理,对动态纹理有性能优化

GuoLei1990 avatar Apr 11 '25 03:04 GuoLei1990