Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Mac OS X or Intel GMA problem?  (Read 3156 times)
0 Members and 1 Guest are viewing this topic.
Offline fletchergames

Senior Member





« Posted 2008-10-20 05:48:09 »

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.
Offline lhkbob

JGO Knight


Medals: 32



« Reply #1 - Posted 2008-10-20 16:37:50 »

I've used Java 5 and Java 6 on Mac and didn't ever see a comparable difference between Sun versions of the jvm.

My best bet is that it's the graphics card being an issue since Intel GMA chips are notoriously bad.

Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #2 - Posted 2008-10-20 16:40:03 »

Without playing your game I'd guess at fill-rate issues. Try running it at a tiny resolution and/or disabling all but a couple of sprites and see what the difference in framerate is.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline fletchergames

Senior Member





« Reply #3 - Posted 2008-10-20 18:26:18 »

Without playing your game I'd guess at fill-rate issues. Try running it at a tiny resolution and/or disabling all but a couple of sprites and see what the difference in framerate is.
You may be right.

I'll try that out after I get back from work.
Offline fletchergames

Senior Member





« Reply #4 - Posted 2008-10-21 18:38:38 »

I found that the issue disappears when I lower the screen resolution of the desktop when I'm in windowed mode.  It also disappears in full-screen exclusive mode when the resolution is low enough.

So it must be a problem with Intel GMA graphics.  There's not a whole heck of alot I can do about it.  It's not like my game is particularly graphics intensive.

I'll just mention that the game runs better in lower resolutions if you have a really bad graphics card in the readme.
Offline Jesja

Junior Member


Projects: 1



« Reply #5 - Posted 2008-11-02 02:36:05 »

It might depend on what you do too, and what you use.

Java2d can be terribly slow on some things, like transparancy, if that is what you using.

I have a GMA950 in my machine at its run fine for all simple things.

Try the Callisto Carnival - Stunning space thruster
http://jenslidestrom.webs.com
Offline fletchergames

Senior Member





« Reply #6 - Posted 2008-11-02 05:31:58 »

I only use bitmask transparency, so it should be reasonably fast.  I'm not drawing that many images that use transparency to the screen most of the time.

One of the worst slow downs was when I had some mouse listening on the AWT event thread that was checking for rollover on some buttons that couldn't roll over anyways.  I removed that, and that worst case disappeared.

Still, it goes pretty slow in high resolutions.

It's kind of screwed up.  I've run games like Diablo on computers with similar graphics cards.  There were slowdowns, but not like this.  Given, I was probably running Diablo in 640x480 or something like that.  Intel GMA cards seem to have some real problems with high resolutions when you're actually drawing something.
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #7 - Posted 2008-11-02 20:38:07 »

I've had huge issues with Java2D's optimizations with either transparent images or with vector-based drawing (like fillCircle or whatever). I usually switch a game that is even remotely complicated to OpenGL, which always always gives me significantly better results.

See my work:
OTC Software
Offline fletchergames

Senior Member





« Reply #8 - Posted 2008-11-03 04:38:26 »

I'm planning to buy a book that contains information about JOGL (among other topics) sometime in the coming months.  I will consider switching to JOGL (which I believe uses OpenGL).

OpenGL is used by practically every graphics card now, right?
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Riven (6 views)
2014-07-29 12:53:52

Dwinin (7 views)
2014-07-29 10:59:34

E.R. Fleming (21 views)
2014-07-29 03:07:13

E.R. Fleming (8 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (51 views)
2014-07-17 23:47:54
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!