为什么本机客户端 (nacl) 演示很慢?
原生客户端示例页面上有两个图形示例。 Pi Generator 和 Conway's Life
它们都使用了我所有的 cpu(嗯,一个核心,占 50%)。在 Conway's Life 中,CPU 分为 nacl64 和 chrome。
为什么这么慢? 我使用的是 Chrome 12.0.7
On the native client example page there are two examples that graphics. Pi Generator and Conway's Life
Both of them use all of my cpu (well, one core which is 50%). With Conway's Life the cpu is split between nacl64 and chrome.
Why is it so slow?
I am using chrome 12.0.7
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
他们应该会吃掉你所有的CPU。它们是基准。
They are supposed to eat up all your cpu. They are benchmarks.
我认为如果这些例子是用 JS 编写的,那么很难以这样的性能来工作。这些示例非常占用 CPU 资源,旨在展示您可以用它做什么。性能非常接近原生。真是太神奇了。
这些示例是著名开源项目的移植。您可以下载原始项目并比较性能。
I think it's pretty hard to get to work such examples with such performance if they were written in JS. These examples are very CPU intensive, and they are made to showcase what you can do with it. Performance is really close to native. It is really amazing.
These examples are ports of famous open source projects. You can download original project and compare performance.