Login  Register

Re: Speeding up writing to JPG file

Posted by Cmar on Jul 18, 2016; 12:27pm
URL: https://forum.jogamp.org/Speeding-up-writing-to-JPG-file-tp4036909p4036929.html

I made a mistake in claiming TextureIO.write(...) is noticeably slower, when I measured the time I was accidentally comparing jpg with png files... so, my bad >.< It turns out TextureIO+jpg has about the same performance with when using AWT+jpg. But yes, the thing was that IIOTextureWriter uses a BufferedImage too, so whether I was using AWT or not didn't make any difference.

HOWEVER, I managed to gain a massive improvement by simply removing the call to ImageUtil.flipImageVertically(image). I now simply flip the image vertically through the rendering process itself.

Thank you for your help!