Java 2D Performance