Tencent / Tencent/libpag

PAGImageView循环PAG动画卡顿的问题

Open
#2,547 0 comments 0 reactions 1 assignee View on GitHub

@kevingpqi123 is already working on this.

Since Oct 24, 2024.

Dominant language
HTML
Stars
5.8k
Forks
531
Avg merge
8d 55m
Merged PRs (30d)
17

Description

【版本信息】

4.4.1

【平台信息】

Android 原生

【预期的表现】

动画播放流畅

【实际的情况】

播放卡顿,尤其是在三星A70S型号的手机上,卡顿十分明显。

【Demo及附件】

通过如下代码设置Pag动画:
val pagFile = PAGFile.Load(this.assets, "pag/operation_calories_calculate.pag")
binding.pagIv.composition = pagFile
binding.pagIv.setRepeatCount(0)
binding.pagIv.play()

fan_speed1.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.