浏览 4530 次
锁定老帖子 主题:JavaFX1.2的性能貌似有了很大的提升
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2009-06-03
最后修改:2009-06-03
Osvaldo Pinali Doederlein's Blog中提到,作者使用Bubblemark进行了一个简单的测试,JavaFX的性能较JavaFX1.1有了~16倍的提升,虽然比Swing还差一些,但已经可以接受(比Flash&Silverlight好很多)。
引用 Performance Results
Now let’s move to the fun part. These are my preliminary results with this “beta” JavaFX Balls code, running on the JavaFX 1.2 runtime: * 16 Balls: 665fps (1.1 = 340fps; 1.2 is 1.95X faster) * 128 Balls: 330fps (1.1 = 20fps; 1.2 is 16.5X faster) * Adaptive mode (200fps): 221 Balls (1.1 = 30 Balls; 1.2 handles 7,3X more load). I could also get 560 Balls @ 60fps. * Mobile (emulated), Adaptive mode (25fps): 91 Balls (1.1 = 82 Balls; 1.2 handles 11% more load) JavaFX 1.2 has a completely rewritten animation core, and it shows. When I evaluated JavaFX 1.0, I complained and cried and whined about the poor scalability of its SceneGraph package, with the conclusion that JavaFX would “stand no chance” to implement serious animations (e.g. for action games, except for clones of trivial 1970's hits like Pac-Man). But this is now past. The performance can be even bigger in a “pure” animation: I found that the controls are relatively heavyweight (even with caching). If I remove the control toolbar, I get 16 Balls @ 992fps (almost reaching the 1000fps cap), or 128 Balls @ 380fps. Even more interesting is CPU usage: the 16 Balls score consumed less than 1% CPU (Q6600), and even the 128 Balls score consumed only 16% CPU. So the program is clearly not constrained by CPU, but rather by other factors like timers or VRAM/DRAM bandwidth. These results compare very favorably with most other Bubblemark contenders (both Java and other platforms). The very best score that I’ve seen before was for PulpCore: it scores 16 Balls @ 410fps, but 128 Balls @ 90fps only; and both saturated a full CPU core (25% of a quad-core). I tested again other competitors (including Flash and Silverlight 2), and they are all much worse than JavaFX in either FPS or CPU usage (often both). 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2009-06-03
最后修改:2009-06-03
有javafx的applet,java虚拟机在firefox plugin中启动速度太慢了。。。要一分到两分钟。。。。
|
|
返回顶楼 | |
发表时间:2009-06-03
mikeandmore 写道 java虚拟机在firefox plugin中启动速度太慢了。。。要一分到两分钟。。。。
没这么夸张吧 你这个1~2分钟应该是下载相关资源所花的时间,启动时间应该在10秒内 |
|
返回顶楼 | |
发表时间:2009-06-04
为什么我打开http://www.javafx.com/samples/里的demo还是很慢啊,我已经装了JDK 6 update 13了,是网速的问题还是本事性能的问题呢?
|
|
返回顶楼 | |
发表时间:2009-06-05
最后修改:2009-06-05
fps 30 和 fps 3000 对人类没区别的。到该卡的时候,还是得卡 ……
另外那人为什么不贴 flex 和 silverlight 的测试结果哩。 只 show off 纵向评测只能表明依然很糟糕…… |
|
返回顶楼 | |
发表时间:2009-09-25
我的机器下载flash没有丝毫的停顿感觉,下载个applet,浏览器会卡掉一段时间....
|
|
返回顶楼 | |
发表时间:2009-09-25
我一直在关注这门技术(一般专家经常说:"长期关注某某技术"^_^).但是根据现在的情况....我是放在Flex和Silverlight之后去学习的一门技术.严重关注这个东东
|
|
返回顶楼 | |