Optimising the graphics of a 2D bird's-eye-view game

Hi,Please take a look at my problem which is posted on the Java2D forum below.http://forum.java.sun.com/thread.jspa?threadID=667203Thanks,Keith
[178 byte] By [CommanderKeitha] at [2007-10-2 0:53:32]
# 1

may-be try to remove or replace this :

g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

with that:

g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);

no sure but try, just to know the difference with and without.

DzzD

DzzDa at 2007-7-15 18:13:16 > top of Java-index,Other Topics,Java Game Development...
# 2

Thanks for the reply DzzD,

You're spot on with the anti-alias performance lag, the game went about 2x faster without it but the jagged shapes look so ugly, so I had to leave it on. Can you have a look at my post in the Java 2D thread, I'm trying to find out about caching images/pixels.

Thanks for your help,

Keith

CommanderKeitha at 2007-7-15 18:13:16 > top of Java-index,Other Topics,Java Game Development...