Alpha Blending, I am doing it wrong ?

Hi, well straight to the point
in my game if I use some Alpha Blending using java.awt.Color I got an incredible lag of performance…

For exmaple at the end of my render method when I do
Graphics.setColor(new Color(20,20,200,100)); // which is a blue alpha color
Graphics.fillRect(0,0,1000,700); // for example, covering the whole thing i a blue touch
I got 4 FPS then… am I doing it very wrong ? Because the results using java.awt.Color’s Alpha are nice but the performance =/
also on small Rects and so on…

oh lol, guess what:
I just compiled and run my project with Java6u2 instead of my old Java5_08 thing
and used OpenGl pipeline, and…
62 fps =DD
so forget what I said unless you got something to say ;D

what happens without the opengl pipeline? because it doesn’t work correctly everywhere yet
try alpha blending with AlphaComposite

opengl react slowly but draws quckily. without it it uses D3D by default in java6 (in fullscreen)… so it makes no difference if i do -Dsun.java2d.d3d=true oder not
but with d3d it wiroks fine too now :slight_smile: