B
Brad Grier
I finally had an opportunity to test my TRS-80 Color Computer Emulator
applet on a 2.8 ghz hyperthreading Pentium 4 machine with Windows XP.
One of the games (Zaxxon) is quite CPU intensive. I was surprised to see
the program actually run much slower on this machine than my 2.0 ghz
Athlon (rated 2.4 by AMD).
When I looked at the windows performance monitor, it never posted either
of the virtual CPUs much past 50%. On my Athlon, this game goes close to
95% CPU utilization (and runs faster). Does this mean a Java program
isn't going to get as much CPU time on a non-hyperthreading CPU?
The applet is multi-threaded in that the graphics are rendered in the
event dispatch thread and the virtual 6809 CPU runs in its own thread.
Beyond that, it's pretty straightforward.
Any thoughts on this subject?
By the way, I believe the hyperthreading machine was running JDK 1.4.2.
Brad
Color Computer Applet
http://members.cox.net/javacoco/
applet on a 2.8 ghz hyperthreading Pentium 4 machine with Windows XP.
One of the games (Zaxxon) is quite CPU intensive. I was surprised to see
the program actually run much slower on this machine than my 2.0 ghz
Athlon (rated 2.4 by AMD).
When I looked at the windows performance monitor, it never posted either
of the virtual CPUs much past 50%. On my Athlon, this game goes close to
95% CPU utilization (and runs faster). Does this mean a Java program
isn't going to get as much CPU time on a non-hyperthreading CPU?
The applet is multi-threaded in that the graphics are rendered in the
event dispatch thread and the virtual 6809 CPU runs in its own thread.
Beyond that, it's pretty straightforward.
Any thoughts on this subject?
By the way, I believe the hyperthreading machine was running JDK 1.4.2.
Brad
Color Computer Applet
http://members.cox.net/javacoco/