Querz / mcaselector

A tool to select chunks from Minecraft worlds for deletion or export.
MIT License
3.18k stars 177 forks source link

Save images using AWT instead of PNGJ #388

Closed Insprill closed 1 year ago

Insprill commented 1 year ago

Switches the saving of images to use AWT's BufferedImage instead of PNGJ, providing a sizable speed boost. I'm not sure why PNGJ was used in the first place, so if there's a problem with using AWT I'm not seeing please let me know. I tested this on a 1.12.2 modded world, using a region selection of 13x11, with 20 or so being empty. In this test, the AWT method was ~90% faster, taking 2.5 seconds on average, compared to 30 seconds from the PNGJ method.