Coder Social home page Coder Social logo

耗内存问题。 about svgaplayer-android HOT 13 CLOSED

svga avatar svga commented on June 22, 2024
耗内存问题。

from svgaplayer-android.

Comments (13)

PonyCui avatar PonyCui commented on June 22, 2024

先看看你的 svga 文件在导出时有没有提示『内存占用过大』

from svgaplayer-android.

protectedMan avatar protectedMan commented on June 22, 2024

确实啊,我跑demo用AS自带性能监视器。 发现玫瑰花动画一出来内存占用巨大。内存从30MB到70MB.

from svgaplayer-android.

PonyCui avatar PonyCui commented on June 22, 2024

@protectedMan 你说的动画是指哪个

from svgaplayer-android.

protectedMan avatar protectedMan commented on June 22, 2024

玫瑰动画啊。你demo里的 rose_2.0.0.svga

from svgaplayer-android.

PonyCui avatar PonyCui commented on June 22, 2024

@protectedMan 这个动画是相对复杂的动画,内存占用大是正常的,里面有 188 个元素。

from svgaplayer-android.

protectedMan avatar protectedMan commented on June 22, 2024

image
400MB内存占用,还有救么。我真不知道怎么优化这内存大小了。。。

from svgaplayer-android.

PonyCui avatar PonyCui commented on June 22, 2024

@protectedMan 没救,你的素材如果是一大堆的透明空白,这是必然的。

from svgaplayer-android.

PonyCui avatar PonyCui commented on June 22, 2024

@protectedMan 我们发现在 AE 转换器上存在一个 BUG,会导致 PSD 矢量素材占用内存问题,正在修复中。

from svgaplayer-android.

PonyCui avatar PonyCui commented on June 22, 2024

@protectedMan 这个问题已经修复了,更新 AE 插件重新导出就可以。
svga/SVGA-AEConverter#11

from svgaplayer-android.

ruidge avatar ruidge commented on June 22, 2024

@protectedMan 你们后来怎么优化的 有什么技巧

from svgaplayer-android.

PonyCui avatar PonyCui commented on June 22, 2024

@ruidge 更新 AE 插件就可以解决问题,你遇到了什么问题?

from svgaplayer-android.

ruidge avatar ruidge commented on June 22, 2024

@PonyCui 我们需要显示有3d效果的动画, UI做的帧动画, 显示的时候内存飙升. 有什么好方法 或者说制作技巧

from svgaplayer-android.

PonyCui avatar PonyCui commented on June 22, 2024

@ruidge 序列帧是没有办法优化的,SVGA 只支持 2D 动画。

from svgaplayer-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.