Re: [JAVA2D] Is it wise to use a VolatileImage in an applet?
That's fine except that within an applet you can only use BufferStrategy in a Canvas which prevents you using Swing components as far as I can tell. I need to be able to use Swing components in my applet(s). -Qu0ll [Message sent by forum member 'qu0ll' (qu0ll)] http://forums.java.net/jive/thread.jspa?messageID=352404 === To unsubscribe, send email to lists...@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to lists...@java.sun.com and include in the body of the message "help".
Re: [JAVA2D] Is it wise to use a VolatileImage in an applet?
jav...@javadesktop.org wrote: Thanks for the info. I think I'll stick to using BI in applets for now just to be safe. Another alternative is to to use BufferStrategy for your back-buffer, BufferedImages for your sprites. Then everything will either be accelerated or not, and you'll get a more consistent experience. Thanks, Dmitri === To unsubscribe, send email to lists...@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to lists...@java.sun.com and include in the body of the message "help".
Re: [JAVA2D] Is it wise to use a VolatileImage in an applet?
(Marked question as answered) [Message sent by forum member 'qu0ll' (qu0ll)] http://forums.java.net/jive/thread.jspa?messageID=352397 === To unsubscribe, send email to lists...@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to lists...@java.sun.com and include in the body of the message "help".
Re: [JAVA2D] Is it wise to use a VolatileImage in an applet?
Thanks for the info. I think I'll stick to using BI in applets for now just to be safe. -Qu0ll [Message sent by forum member 'qu0ll' (qu0ll)] http://forums.java.net/jive/thread.jspa?messageID=352396 === To unsubscribe, send email to lists...@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to lists...@java.sun.com and include in the body of the message "help".
Re: [JAVA2D] Is it wise to use a VolatileImage in an applet?
jav...@javadesktop.org wrote: Yes Dmitri, I am running Vista with Aero enabled and what you say about offscreen rendering being fast and then painting being slow is exactly what I am experiencing. So there is no way around this? Will Vista always impose this restriction regardless of the Java version? Unfortunately, yes, Vista is forever crippled in this way. We were told the bug won't be fixed in Vista, and there isn't a known work around. You could create an out of browser JFrame in your applet of course (or make it draggable - if you're on vista, and having these issues you're very likely to be running in the new plugin with supported draggable applets - which is probably simpler). Thanks, Dmitri === To unsubscribe, send email to lists...@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to lists...@java.sun.com and include in the body of the message "help".
Re: [JAVA2D] Is it wise to use a VolatileImage in an applet?
Yes Dmitri, I am running Vista with Aero enabled and what you say about offscreen rendering being fast and then painting being slow is exactly what I am experiencing. So there is no way around this? Will Vista always impose this restriction regardless of the Java version? -Qu0ll [Message sent by forum member 'qu0ll' (qu0ll)] http://forums.java.net/jive/thread.jspa?messageID=352383 === To unsubscribe, send email to lists...@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to lists...@java.sun.com and include in the body of the message "help".
Re: [JAVA2D] Is it wise to use a VolatileImage in an applet?
Are you running on Vista by any chance, with Aero enabled? There's a Microsoft bug (reportedly addressed in Windows 7, but I haven't had a chance to verify it yet) which forced Java2D to disable onscreen hw accelerated rendering in applets on Vista. The offscreen rendering is still accelerated (when you render to the VI), but it is then copied to the screen (browser page) using GDI. Thanks, Dmitri jav...@javadesktop.org wrote: I am curious, with Java 6 Update 14 on Vista, should a VolatileImage perform as well in an applet as it does in a JFrame? I ask because I have the exact same code running in both of these environments and the VI functioning in the applet is *significantly* slower than in the frame. Animations that run smoothly in the frame are stuttering in the applet. I do realise that Java code in general runs about 20-30% faster in a frame than in an applet but even this difference could not explain what I am seeing. It is as though the VI has no hardware acceleration whatsoever in the applet. Thanks, -Qu0ll [Message sent by forum member 'qu0ll' (qu0ll)] http://forums.java.net/jive/thread.jspa?messageID=352221 === To unsubscribe, send email to lists...@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to lists...@java.sun.com and include in the body of the message "help". === To unsubscribe, send email to lists...@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to lists...@java.sun.com and include in the body of the message "help".
[JAVA2D] Is it wise to use a VolatileImage in an applet?
I am curious, with Java 6 Update 14 on Vista, should a VolatileImage perform as well in an applet as it does in a JFrame? I ask because I have the exact same code running in both of these environments and the VI functioning in the applet is *significantly* slower than in the frame. Animations that run smoothly in the frame are stuttering in the applet. I do realise that Java code in general runs about 20-30% faster in a frame than in an applet but even this difference could not explain what I am seeing. It is as though the VI has no hardware acceleration whatsoever in the applet. Thanks, -Qu0ll [Message sent by forum member 'qu0ll' (qu0ll)] http://forums.java.net/jive/thread.jspa?messageID=352221 === To unsubscribe, send email to lists...@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to lists...@java.sun.com and include in the body of the message "help".