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

Hilo WebGL下的性能和 pixi 比差了好多啊。 #67

Closed
finscn opened this issue Dec 12, 2016 · 2 comments
Closed

Hilo WebGL下的性能和 pixi 比差了好多啊。 #67

finscn opened this issue Dec 12, 2016 · 2 comments
Assignees

Comments

@finscn
Copy link

finscn commented Dec 12, 2016

建议你们开发一个 和 pixi的 小兔子类似的 性能压力测试用例

http://www.goodboydigital.com/pixijs/bunnymark/

然后好好测试 优化一下。

我看了下代码, 总体思路都差不多, 都是能批量就批量, 但是不知道为啥性能差那么多。
我也不是很懂webgl ,所以建议啥的我也给不了。

@06wj
Copy link
Member

06wj commented Dec 13, 2016

我写个demo测试下

@06wj 06wj self-assigned this Dec 13, 2016
@06wj
Copy link
Member

06wj commented Dec 13, 2016

确实差好多。。
pixi那个例子用的是ParticleContainer,做了很多定制的优化,比如计算世界坐标矩阵放到了shader里,可以指定粒子哪些顶点属性需要动态上传。pixi普通的sprite也做了很多优化,比如计算矩阵时rotation不变时cos,sin缓存,texture不变时uv缓存等。

后续要针对Hilo也做下这方面优化。

@06wj 06wj closed this as completed Jan 3, 2017
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

2 participants