A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
Swing / AWT / SWT
How to get hardware acceleration on 2d images in applets?
Joined: Jun 05, 2009
Jun 05, 2009 01:52:13
I tried using
but it wasn't accelerated (image.getCapabilities().isAccelerated() returned false)
I basically used it like this
image = gc.createCompatibleVolatileImage(width, height, Transparency.OPAQUE);
what else am i supposed to do to get it hardware accelerated?
Joined: Mar 22, 2005
Jun 05, 2009 02:57:17
I don't think that's applet-specific, so I moved the question to the general GUI forum.
Let's discuss this
in this duplicate post
I agree. Here's the link:
subject: How to get hardware acceleration on 2d images in applets?
What is the relationship between WebGL and HTML5?
Graphics and animation in Java
Why does a gradiant paint affect performance so much?
BufferedImage versus VolatileImage
Does every image need to be a 'VolatileImage' in a 2d game?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015