哪个JavaScript图形库具有最佳性能? [英] Which JavaScript graphics library has the best performance?

查看:83
本文介绍了哪个JavaScript图形库具有最佳性能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一个JavaScript项目进行一些研究,其中绘制简单基元(即行)的性能是迄今为止最重要的。

的答案这个问题提供了一个很好的JS图形库列表。虽然我意识到浏览器的选择比图书馆有更大的影响,但我想知道在选择浏览器之前是否有任何区别。



有没有人在这些之间做过性能比较?

>如果你没有做3D,只需使用原始帆布作为探险者回溯。你的瓶颈将是JavaScript的执行速度,而不是行渲染速度。除IE外,当场景过于复杂时,由于VML实际上会构建一个dom,所以它会停滞不前。



如果您真的担心性能,那么绝对要使用flash并用actionscript写出整个事情。你会得到一个更好的性能,并且使用flex sdk你甚至不需要购买任何东西。在flash / flex中有几个可用的3d库。


I'm doing some research for a JavaScript project where the performance of drawing simple primitives (i.e. lines) is by far the top priority.

The answers to this question provide a great list of JS graphics libraries. While I realize that the choice of browser has a greater impact than the library, I'd like to know whether there are any differences between them, before choosing one.

Has anyone done a performance comparison between any of these?

解决方案

If you're not doing 3d, just use raw canvas with excanvas as an explorer fall-back. Your bottleneck will be javascript execution speed, not line rendering speed. Except for IE, which will bog down when the scene gets too complex because VML actually builds a dom.

If you're really worried about performance though, definitely go with flash and write the whole thing in actionscript. You'll get an order of magnitude better performance, and with the flex sdk you don't even need to buy anything. There are several decent libraries for 3d in flash/flex available.

这篇关于哪个JavaScript图形库具有最佳性能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆