I have a game in beta testing at http://www.orbitalcows.com/lpc/lpctest.php
. It runs fine on my laptop, but is almost unbearably slow on my Mac Mini. Here are the stats for the two machines:
Laptop: Windows XP, Pentium M 1.66 Ghz, 512 MB RAM, ATI Mobility Radeon 9000, Java 6
Mac Mini: Max OS X 10.4.11, Core Solo 1.5 Ghz, 512 MB RAM, Intel GMA950, Java 5
The two computers are comparable. The only real differences are the OS, the video card, and the version of Java. Which of these is causing the problem?
It seems like the graphics card must be the issue, but the game isn't exactly graphically-intensive. It might just be that Java is a different version on the Mac Mini and also written by Apple instead of by Sun.
I plan to try testing on the laptop with Java 5 to see what happens, but it still wouldn't be the same Java 5 as on the Mac (Apple codes its own version of Java).
I did optimize one small thing - eliminating some code that did unnecessary calls to mouse event code. This resulted in a small improvement on the laptop when other programs were running at the same time and a slightly better improvement on the Mac Mini. Even so, the game is still really slow on the Mac Mini.