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

性能提升建议 #1

Open
THISISAGOODNAME opened this issue Sep 9, 2015 · 3 comments
Open

性能提升建议 #1

THISISAGOODNAME opened this issue Sep 9, 2015 · 3 comments
Assignees

Comments

@THISISAGOODNAME
Copy link

http://jonobr1.github.io/two.js/

canvas Renderer性能确实不行,可以考虑webGL Renderer,推荐使用仿照three.js简化的2D版本two.js,性能很不错

@hozuki
Copy link
Owner

hozuki commented Sep 9, 2015

@THISISAGOODNAME two.js 不支持:顶点、Y rotation、文本、渐变、滤镜etc。我尝试一下。

@jabbany
Copy link

jabbany commented Sep 10, 2015

感觉还是需要3D的,尤其是代码弹幕的API都是可以直接挂Matrix3D去做3D变幻的。
(题外话,赞一下canvas/webGL实现!

@hozuki hozuki self-assigned this Oct 2, 2015
@hozuki
Copy link
Owner

hozuki commented Jan 7, 2016

@THISISAGOODNAME @jabbany WebGL 实现推上来了
性能上……在 NW 中,也许是某些流程还可以简化,小圆脸没有达到全60fps的目标,其他两个示例表现良好。
浏览器测试表现:Firefox 上的效率远不如 NW(看性能分析似乎是对 WebGL 的调用和 GC 的锅),而且出现了严重的内存泄露,原因调查中。

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

No branches or pull requests

3 participants