Managed images only become managed after a certain number of "render from" operations, such as a call to drawImage(). The threshold is adjustable using the Sun specific flag: <p> -Dsun.java2d.accthreshold=x where x is the number of render operations before that image will be cached in VRAM. Setting this to zero should force all images to become accelerated on load. Note that any time you render to the image, it will become accelerated until you start rendering from it again. Further if you try to grab the DataBuffer directly, the image is no longer a candidate for acceleration since it can't tell when you're making changes to the image. <p> You shouldn't need to communicate with the SurfaceManager directly, since this is a sun private API. If you don't want to play with runtime properties, the obvious workaround is to ensure that the image is drawn to a dummy surface a few times before being used by the app. <p> <a href="http://java.sun.com/j2se/1.5.0/docs/guide/2d/flags.html">This link</a> details the runtime flags and Chet's blog on BufferedImages gives tonnes of stuff about acceleration: <a href="http://weblogs.java.net/blog/chet/archive/2003/08/bufferedimage_a.html">Here</a> and <a href="http://weblogs.java.net/blog/chet/archive/2003/08/bufferedimage_a_1.html">here</a> [Message sent by forum member 'fred34' (fred34)]
http://forums.java.net/jive/thread.jspa?messageID=218010 =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
