Re: On Java and C++
"Remon van Vliet" <remon@exmachina.nl> wrote in message
news:44565063$0$31645$e4fe514c@news.xs4all.nl...
"Timo Stamm" <timo.stamm@arcor.de> wrote in message
news:44564f6f$0$11079$9b4e6d93@newsread4.arcor-online.net...
Remon van Vliet schrieb:
I think it's fair to say that on average Java initialises a bit slower
than Flash (not surprising considering the implementation differences).
That's my experience on a lot of different systems and with a lot of
flash movies. I am surprised that Oliver has a different experience and
I'd like to know the reason. I have quite a few customers who would not
accept a delay of five seconds.
Well it's worth noting that the VM initialisation is what's causing the
delay, and that only happens once. Actually loading and starting the
Applet (at least on my system) is a matter of a second or slight more.
I was a bit surprised at the 5 second figure I arrived at as well. This
was done basically by holding my wrist watch up to the screen, and taking
the "start time" to be when I saw the HTML rendered, and the "end time" to
be once I saw the applet/flash actually running. My watch only has 1 second
precision, and my reaction time as a human may have been a factor, but I
think I was accurate to within, say, 0.7 of a second.
AFAIK, I didn't have load any applets during that instance of FireFox. I
had Eclipse and jEdit running in the background, but I'd be surprised if
Firefox could somehow "share" the VM with them.
Graphics performance is probably slightly in favour of Flash although
Java2D uses hardware acceleration as well. In terms of raw computing
power i suspect Java will blow Flash out of the water as i'm boldly
assuming the "VM" of Flash is not nearly as capable as an average JIT
JVM. I must stress that's an assumption rather than fact though.
Flash graphics performance is not very good. I have never made any tests,
but I guess that Applets are better. Flash graphics performance on the
mac is very bad, even though they improved it with version 8 of the
player.
Oh yes? That surprises me, i've always assumed Flash to be faster if
you're going for the same graphical quality, especially where antialiasing
is involved. Interesting stuff..
I also assumed Flash would be faster for the graphics stuff. Flash has a
3D API too, doesn't it?
- Oliver