• Post Reply Bookmark Topic Watch Topic
  • New Topic

Does anybody else experience slower Java performance on Mac OSX?  RSS feed

 
Edward Nunez
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote a game in Java that runs okay to moderately choppy on my Mac, yet flies on a Windows machine. Seems like the Mac JVM doesn't preform as well as others (Or something along those lines, I may not be using the right terminology)? In case you're wondering, I just upgraded my Mac's Java to 8 with no noticeable difference.

Edward.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37469
539
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are the systems equivalent with respect to CPU and RAM? Can you check which is the resource constraint on the Mac?
 
Edward Nunez
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeane, Mac is more powerful in all hardware respects. I'm not sure about these resource constraints though. Can you tell me where I can check that out?
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edward Nunez wrote:Jeane, Mac is more powerful in all hardware respects.

Sounds like an advertising slogan to me.

And don't forget that, by their nature, bytecode and (to a lesser extent) the JVM are generic, and so may not be able to use all the bells and whistles available to a targeted Mac executable.

I'm not sure about these resource constraints though. Can you tell me where I can check that out?

Well, most OS's have some sort of system monitor where you can check out things like available memory, CPU and disk usage in real time. Not sure what it's called on the Mac, but if you fire it up and then run your game you might be able to see what's going on and whether there are any nasty spikes in any of them.

For more sophisticated stuff you may need to get a proper profiler. Not sure which is best for the Mac, but I'm sure somebody here might know.

HIH

Winston
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37469
539
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston Gutkowski wrote:Well, most OS's have some sort of system monitor where you can check out things like available memory, CPU and disk usage in real time. Not sure what it's called on the Mac, but if you fire it up and then run your game you might be able to see what's going on and whether there are any nasty spikes in any of them.

Mac has "Activity Monitor". And since it is UNIX, it also has all the regular commands like "top"
 
Edward Nunez
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston, I meant to say MY mac ;).

Here's what I see through the top command when I start up my program:


It definitely seems to be using up a lot of resources. When I try to run the game more than once simultaneously, the games all slow down quite a bit and the cpu fan starts going mad.

The game is basically Breakout with moving targets, nothing very fancy. Regardless, the Windows machine handles it so much better. I can't quite figure it out.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!