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 Graphics Performance  (Read 1586 times)
0 Members and 1 Guest are viewing this topic.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Posted 2003-12-19 19:28:04 »

Just something to be aware of if you are not using JOGL or LWGL and hope to run well on a Mac.  This is why it is critical on the Mac platform to use an image format that is supported by the native APIs (e.g. a 'compatible' image).

Quote

     From:         gziemski at apple.com
     Subject:       Re: Java 1.4.1's lack of hardware acceleration MUST be defined
     Date:       December 19, 2003 2:54:58 PM EST
     To:         java-dev at lists.apple.com

guys,

There are currently no hardware accelerated parts of graphics code in 1.4.x at all, NONE, not even in VolatileImages.

We are working with CoreGraphics team to address graphics performance issue in 1.4.x. If you went to the last WWDC, you might have caught their presentation on QuartzExtreme2D. It is a set of CoreGraphics API and the underlaying mechanism that can write to OpenGL based (hardware accelerated) contexts. We are hoping we can leverage it in 1.4.x at some point.

Also, do not forget that 1.5.x has, as one of its features, hardware accelerated (OpenGL) graphics pipelines, exact same thing we had in 1.3.x. So, even if QuartzExtreme2D gets delayed, once 1.5.x is out on Mac OS X we can have hardware acceleration one way or another.


If your application runs well on other platform, but runs unreasonably slow on Mac OS X, then it is a bug. And please file it, so that we can get a better idea of how to prioritize our tasks. If graphics performance issue is on top of your list then please let us known.


cheers


The good news I see in the above is that it looks like the OpenGL pipeline planned for unix will be implemented on the Mac.  Hopefully Apple won't lag too far behind with their 1.5 release.

Offline Jeff

JGO Coder




Got any cats?


« Reply #1 - Posted 2003-12-19 20:24:56 »

IMO The even better news is that Apple is considering performance problems bugs.  Thats pretty open minded of them Smiley

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #2 - Posted 2003-12-19 21:35:23 »

True.   While things may not happen as fast as I would like, I have to say that I'm generally impressed with the Apple folks and their Java efforts.  I guess if you are going to claim to produce the fastest personal computer in the world that you better consider performance an issue though Wink

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #3 - Posted 2003-12-25 01:59:34 »

More good stuff to know about optimal graphics on Macs...
Quote
     From:         gziemski at apple.com
     Subject:       LazyDrawing and LazyPixelConversion description
     Date:       December 24, 2003 2:02:07 PM EST
     Cc:         java-dev at lists.apple.com

Craig,

Type "java apple.awt.RuntimeOptions" to get a brief description of all
available runtime options.

LazyDrawing (apple.awt.graphics.EnableLazyDrawing) uses a queue to
collect similar graphics primitives (same stroke, transformation,
etc..) before flushing them to surface. This benefits applications that
draw a lot of similar primitives. You can try increasing the size of
the queue (apple.awt.graphics.EnableLazyDrawingQueueSize) if you can
spare memory, but want more speed. This optimization is turned ON by
default.

LazyPixelConversion minimizes the amount of pixel conversions required
when handling those Java image types that can not be handled natively
by CoreGraphics. There are only a few BufferedImages that CoreGraphics
can handle without pixel conversion, ie: TYPE_INT_ARGB_PRE,
TYPE_INT_RGB , TYPE_USHORT_555_RGB and TYPE_BYTE_GRAY. Notice that even
TYPE_INT_ARGB is not supported natively (as destination) - we need to
manually alpha premultiple color bands in this case. If you construct a
BufferedImage by passing your own DataBuffer, or you access the image
data buffer later, we have to turn this optimization off for that
image.
It was mostly implemented to boost the performance of all those
apps coming from other platforms, where the image types are hardcoded.
Use createCompatibleImage to create BufferedImages that are guaranteed
to be natively supported on all platforms. This optimization is turned
ON by default.


cheers

Offline Jeff

JGO Coder




Got any cats?


« Reply #4 - Posted 2003-12-25 02:03:59 »

Hey!

Tell him we'll make him his own Mac Graphics topic on JGO if he'd come answer questions and give advice Wink

JK

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline aNt

Senior Member




AFK


« Reply #5 - Posted 2004-05-14 11:35:39 »

dont give him even more to do Jeff! let our Gerard get on with it Smiley hes a top dude- top top dude....
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #6 - Posted 2004-05-14 11:57:16 »

Quote
Hey!

Tell him we'll make him his own Mac Graphics topic on JGO if he'd come answer questions and give advice Wink

JK


+1

Basically, I'm never going to subscribe to a Mac-specific list (too many subs already!), but...I'd definitely read the forum if it were on JGO (because I can skim-read topics I'm not directly working on but which it helps to know what the current state-of-play is).

I'm sure there are many more like me Smiley.

If you look back you'll see that there are a LOT of compatibility problems with games not running OK on Mac's. My guesstimate is about 5-10 times as many as don't run on linux (usually they don't run because the author only has windows and hard-coded something like "C:\WINDOWS" or made a windows-only JNLP Smiley).

These are programmer mistakes/bugs, not problems with Java's WORA, and it would help educate java developers if we had a Mac-OS-X category.

Actually...

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=suggestions;action=display;num=1084535814;start=0#0

malloc will be first against the wall when the revolution comes...
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!