Author Topic: PNG Optimization  (Read 1746 times)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 777
PNG Optimization
« on: January 10, 2017, 02:47:53 am »
Quote from: Patrice
The gem stone animation is one of the biggest i have, 30000500 pixels in 32-bit, go figure.

Patrice,

Are you aware of quite a number of SW packages around that could optimize your PNGs efficiently while preserving their alphas where available? And in many cases you might even resort to lossy recompression.
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 952
    • zapsolution
Re: PNG Optimization
« Reply #1 on: January 10, 2017, 08:53:21 am »
Mike--

Thank you very much for the link, i shall try it.

While very interresting to produce smaller disk file, that won't change anything when loaded in memory, because then everything must be turned into 32-bit DIB or standard BITMAP.
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 777
Re: PNG Optimization
« Reply #2 on: January 10, 2017, 05:36:57 pm »
... that won't change anything when loaded in memory ...

That's correct, and the problem seems to have no solution in programmatic user space.

However both DX and OpenGL support a number of image formats (including DDS/DXT) that allow for on-the-fly decompression on the GPU hardware only when the respective texture is needed for a particular render pass.
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)