Add basic progress messages on fullrender (end of each map, every 100

renders), and add dispose on Graphics2D to accelerate non-heap memory
recovery
This commit is contained in:
Mike Primm 2011-05-18 08:34:15 -05:00 committed by FrozenCow
parent c2d596e433
commit 28e98a617d
2 changed files with 13 additions and 1 deletions

View file

@ -187,7 +187,8 @@ public class DefaultTileRenderer implements MapTileRenderer {
Graphics2D g2 = zIm.createGraphics();
g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
g2.drawImage(img, ox, oy, scw, sch, null);
g2.dispose(); /* Supposed to speed up non-heap memory recovery */
img.flush();
/* save zoom-out tile */