copyArea? Sure - just wait a sec!

Anybody out there (here?) sitting on knowledge about http://developer.java.sun.com/developer/bugParade/bugs/4615589.html (It’s the VolatileImage copyArea very slow in certain directions) ? I’ve just restarted my attempts at a IsoMetric game engine, and the slowdown when scrolling in some directions is getting quite annoying…

It says Bug, In progress, but the progress bar for that bug solving seems to sit as still as a mountain

//\icke

well, that bug has 0 (zero) votes.
seems nobody is interested in sun fixing it…
if you really care then vote for the bug, and ask as many people as you can to vote it too!

mporta is right: we won’t know that the bug is important to users until you tell us. Vote for it, post your comments on jdc, then we’ll know.

Ok, I’ll see if my vote will help my cause :wink: However, In progress doesn’t actually mean In progress, but rather might become in progress?! I won’t yell about it, the engine is up to ~160 fps in the “slowest” directions now anyway :slight_smile:

//\icke

[quote]mporta is right: we won’t know that the bug is important to users until you tell us. Vote for it, post your comments on jdc, then we’ll know.
[/quote]
Ah*… too bad we only have votes. there are so many bugs that are important to me. i’ve always wished we could have way more than just three, say 15 or 20.
Is there a way to make that request to Sun?

Yeah, file a RFE against Bug Parade and vote for it ::slight_smile:

Cas :slight_smile:

Already up to 6 votes! If I could only persuade my all people at my company (~3000) to sign up and follow my example, I would end up with ~9000 votes! I’ll go have a talk to my CEO in a moment :wink:

//\icke

[quote]Yeah, file a RFE against Bug Parade and vote for it ::slight_smile:

Cas :slight_smile:
[/quote]
lol…
Would you vote for it?

Well, Micke, since you have 160fps already, I don’t see how we can justify spending our time on this bug =)

Well, it dropped down to ~100 when I added some houses and trees, and what’s gonna happen when those cute little soldierguys enter the scene? They will probably bring with them some tanks, jeeps, helicopters etc (And the engine does no collision detection, scripting, yada yada yet :wink:

It works ok, it just that usual developer-feeling “this could be a little better if only…”

/M

Hi,
i have submitted the Bugreport.

I have also found another solution for smooth scrolling.
I’m using the following function:

Image image;
Graphics2D g=image.createGraphics();
private void copyArea(int x,int y, int width, int height,int dx,int dy)
{
int x1=x+dx;
int y1=y+dy;
int x2=x1+width;
int y2=y1+height;
g.drawImage(image,x1,y1,x2,y2,x,y,x+width,y+height,null);
}

It works great with Images with a resolution about 800x600 (same speed as with copyArea but without slowdowns). With my new cpu(XP1600) i can use the function for even bigger images. I’m not really sure why the speed is cpu dependent,but i didnt benchmark it very good.

I hope it will help you.

Homer J Simpson ( J stands for JAVA ) ;D

Seems like to way to go for now, thanks for the nice tip!

/M

I’ve tried the given solution but the result
is the same!

I don’t know why this happens…

I’m using a 400x300 screen (fullscreen but tried
also windowed).

What kind of image are you using as your backbuffer ?

Homer

I’m using a VolatileImage the same size of
the screen (when fullscreen) or the same size of the
applet…