Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

写的很好星星给了就是非常卡啊 #2

Open
hfc123 opened this issue May 16, 2017 · 7 comments
Open

写的很好星星给了就是非常卡啊 #2

hfc123 opened this issue May 16, 2017 · 7 comments

Comments

@hfc123
Copy link

hfc123 commented May 16, 2017

不知道能不能搞个loading的效果把点阵的制作放在子线程中,
瞎说的,效果很好,进去的时候卡,

@Yasic
Copy link
Owner

Yasic commented May 16, 2017

@hfc123
您好,关于卡顿问题,请问您使用的版本是多少?
目前有如下方案供您选择:

  • 使用 2017-05-11 更新的 0.0.5 版本中的 ParticleTextSurfaceView,继承自 SurfaceView,采用子线程绘制粒子动画,适合多 View 渲染
  • 将横向和纵向像素采样间隔设置大一些,同时增大粒子半径,从而减少需要绘制的粒子个数,能有效消减卡顿效果,具体信息见 “配置信息类 ParticleTextViewConfig”
    如有更多问题请提 Issue.

@hfc123
Copy link
Author

hfc123 commented May 16, 2017

我直接download你的项目运行的就是启动的时候就挺久的,我说的不是动画卡,activity启动的时候卡。

@hfc123
Copy link
Author

hfc123 commented May 16, 2017

@Yasic

@Yasic
Copy link
Owner

Yasic commented May 16, 2017

@hfc123
您好。Demo里有四个 Activity 包含绘制内容,分别是

请问具体是哪一个Activity启动卡,还是四个Activity都卡?

@hfc123
Copy link
Author

hfc123 commented May 17, 2017

4个都卡我的手机是魅族4pro的,activity启动很卡4个都停顿挺久再进去的那种

@hfc123
Copy link
Author

hfc123 commented May 17, 2017

@Yasic

@junfenggithub
Copy link

启动的时候太卡,差不多点击应用后3s才能启动

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants