Unnecessary BufferedImage re-allocation for scaling in highly zoomed situations
Currently it seems that MapNode
, while rendering map tiles on screen, does new BufferedImage allocations during each tile render when the view is highly zoomed in.
It seems to be caused by the type of the BufferedImages which does not correspond to the type that is created using GraphicsConfiguration.createCompatibleImage
.
While panning the view, this causes totally unnecessary memory allocation pressure that can be worked around by simply caching the tile BufferedImages using a screen-compatible color model.