4 ms·
Interestingly javafx seems to be 70% faster than WebGL: http://weblogs.java.net/blog/opinali/archive/2011/11/25/javafx-balls-30 http://weblogs.java.net/blog/opi
by thebluesky 14y ago
Interestingly javafx seems to be 70% faster than WebGL:
http://weblogs.java.net/blog/opinali/archive/2011/11/25/javafx-balls-30 http://weblogs.java.net/blog/opinali/archive/2011/11/25/java...
- nl 14y agoThat's dreadful for Java. OpenGL support has been in Java for 6 or 7 years. WebGL has been in browsers less than 12 months and Java isn't even twice as fast? (I'm a long time Java programmer, but I think JavaFX is the most stupid thing I've ever seen)
- thebluesky 14y agoFrom the blog: "JavaFX (Hotspot Client) is 70% faster than WebGL, a great performance, considering the competition is a dedicated game engine built on top of a low-level 3D API."
- deleted 14y ago[deleted]
- aw3c2 14y agoHow does WebGL compare to a native application?
- _delirium 14y agoIt depends strongly on the specific application. The actual GL calls themselves, once data is on the GPU, execute at the same speed as in native applications, because it's the same hardware/drivers/API. But, the roundtrips between JS code (and JS datatypes) and the GPU could kill performance even more than CPU<->GPU roundtrips normally do. So depends on how good the application is at avoiding those.
- aw3c2 14y agoThanks!
- exDM69 14y ago70% faster doing what? On what hardware? The images on the link you posted look like it's doing a few 2d blits. So if you have any half decent graphics hardware, your GPU will be sitting idle and the CPU will be waiting for vsyncs. So while you may get better perf in a micro benchmark like this, with decent graphics hardware you should be able to add 2000x the content (vertices, fragments, textures, etc) to the WebGL app with only a little increase in GPU (and CPU) load. Comparing anything to WebGL is silly as WebGL may run on different hardware and software, ranging from a mid-spec smartphone to a hot gaming PC that has liquid cooling and it's own nuclear power plant for power supply.