Re: [JAVA2D] Is it wise to use a VolatileImage in an applet?

2009-06-22 Thread Dmitri Trembovetski

  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.


Re: [JAVA2D] Is it wise to use a VolatileImage in an applet?

2009-06-22 Thread java2d
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?

2009-06-22 Thread java2d
(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?

2009-06-22 Thread java2d
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?

2009-06-22 Thread Dmitri Trembovetski

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?

2009-06-22 Thread java2d
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.