Hi,
which 6u10 build are you running? We have made some
optimizations in I believe b23 (which isn't out yet)
which may help this case.
Also, what's your video board? Could you
please set J2D_TRACE_LEVEL=4 env. variable,
then run your app and post the output.
Could you post a complete test case?
Thanks,
Dmitri
Java2D Team
[EMAIL PROTECTED] wrote:
Hi, there I'm writing a program that draws to a volatile Image by setting every
pixels manually every frame.
When I tested my program with java 6u5 I got 460-500 fps on average, however with java 6u10 the performance drops by almost 50%, from 450 to 240. I have done several test runs with both versions, the results have been consistent throughout the test.
this is my pc :
Athlon xp 2200+,
768 Ram,
Windows XP
This is the part of the codes that I'm working on that initializes and renders
the volatile Image
....code begins here
VolatileImage vi;
...................
vi = mainFrame.createVolatileImage(256*pixelSize, 192*pixelSize);
vi.validate(mainFrame.getGraphicsConfiguration());
...................
//ImgA is a BufferedImage
vi.getGraphics().drawImage(imgA,0,0,256*pixelSize,192*pixelSize,null);
mainFrame.getGraphics().drawImage(vi,ins.left,ins.top,null);
This part is for the bufferedimage (this is what I do to gain access to the
pixels)
BufferedImage imgA;
...................
imgA = new BufferedImage(256,192,BufferedImage.TYPE_INT_RGB );
pixelsA = ((DataBufferInt)
((BufferedImage)imgA).getRaster().getDataBuffer()).getData();
...................
for(int i = 0 .......)
pixelsA[i] = ..... (performs pixel manipulation)
....code ends
My english isn't that good, hopefully I can get my point across :).
[Message sent by forum member 'bonbon' (bonbon)]
http://forums.java.net/jive/thread.jspa?messageID=270562
===========================================================================
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".
===========================================================================
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".