Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: JAWT on Java 1.3.1



Seth Tisue,

> I'd like to use JAWT in Java 1.3.1 on Jaguar to draw in a
> java.awt.Canvas using C code that calls QuickDraw. (My hope is that
> drawing will be fast enough in 1.4.1 that I won't need to resort to C
> code, but in the meantime, I'd like my app to be fast on 1.3.1. I
> don't want to have to convert my AWT app to Swing in order to get the
> benefit of hwaccel, and I don't want to use JDirect, because I don't
> want to pay the cost of crossing the Java/C bridge once per native
> QuickDraw call.)

No experience with JAWT. I think if this is an applet it's use has been obsoleted in favor of the Plugin API. I'm not sure applications were mentioned.
For JDirect it was in past discussions indicated as about the fastest linkage to native. Compared to what I'm not exactly remembering, JNI, although at 1.3 JDirect I think has been indicated as re-worked using JNI. So my information there, it being faster, possibly dated. But remember that at it constitutes the complete JVM linkage in MRJ 1.3.1 and earlier, so for Apple itself the performance has been as optimal as theres been.
For hwaccel I think they did some tweaking so these benefits can be realized for AWT as well as for Swing, possibly depending on component nesting levels or something, I remember something about the GUI had to be single layer. So you might not need to rule it out anyhow.

Mike Hall <email@hidden>
<http://www.spacestar.net/users/mikehall>
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.