Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
UseQuartz option?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UseQuartz option?



Through some profiling, I discovered that a big bottleneck in my application was in these two places:

apple.awt.CTextPipe.doDrawString(CTextPipe.java:Unknown line)
apple.awt.OSXSurfaceData.drawString(OSXSurfaceData.java:1424)
apple.awt.CTextPipe.drawString(CTextPipe.java:92)
sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2955)

and

apple.awt.CRenderer.doRect(CRenderer.java:Unknown line)
apple.awt.OSXSurfaceData.doRect(OSXSurfaceData.java:1212)
apple.awt.CRenderer.fillRect(CRenderer.java:157)
apple.awt.CRenderer.fillRect(CRenderer.java:145)
sun.java2d.SunGraphics2D.fillRect(SunGraphics2D.java:2419)

Looking at apple's site, I found this little gem:

apple.awt.graphics.UseQuartz

J2SE 5.0 Release 4 features support for Sun's 2D renderer. To use the Sun 2D renderer, set this property to false.

This is strictly a developer option. Java applications intended for use on Mac OS X should not rely on Sun's 2D renderer.

The default value is true.


So when I set this property to false, it makes an insanely great difference in performance.  Stuff that took countable seconds of time, now happens instantly.

My application is not using Swing, so does anybody here know if there is any reason NOT to set this property in my application (other than the unexplained warning, above)?

-Joshua

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.