-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0
-
beta2
-
x86
-
windows_nt
Name: yyT116575 Date: 11/28/2000
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
I'm trying to developp a 3D isometric game with Java, and so I
use very heavily the Java2D API. To avoid flickering with
animation, I use a BufferedImage to do some double buffering;
To handle game area scrolling, I use copyArea on this buffered image.
When using the copyArea method with a buffered image graphic context,
I have a performance issue when offset values are others than both
positives integers :
copyArea (0, 0, bounds.width, bounds.height, 10, 10) works
very fast (I'd say 0 ms ?), whereas
copyArea (0, 0, bounds.width, bounds.height, -10, 10)
copyArea (0, 0, bounds.width, bounds.height, 10, -10)
copyArea (0, 0, bounds.width, bounds.height, 0, -10)
copyArea (0, 0, bounds.width, bounds.height, 0, 10)
copyArea (0, 0, bounds.width, bounds.height, -10, 0)
copyArea (0, 0, bounds.width, bounds.height, 10, 0) all work
very slow (I've constated an average time of 300 ms on my system,
which is a PIII 500 ...)
I've tried different kinds of rendering hinds and buffered image
types without beeing able to improve performance.
(Review ID: 112930)
======================================================================