Author Topic: enable4bpp 16bit texture in memory  (Read 1037 times)

Offline Dinin

  • byte
  • *
  • Posts: 28
    • View Profile
enable4bpp 16bit texture in memory
« on: July 30, 2012, 08:05:58 am »
Hi !

I'm trying to reduce memory usage so i tried 'texture.enable4bpp(true)', but in log the same memory is used to load the Texture:
Texture loaded...16384 bytes/64*64 pixels!

In this thread (,1963.msg14447.html#msg14447) you wrote:
The call itself doesn't consume one single byte of memory. The conversion happens during the upload process to the GPU. The texture data in memory is always 8bpp no matter which setting you use.

So is there no way to load 16bit textures to memory ?

Greets and thx

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12027
    • View Profile
Re: enable4bpp 16bit texture in memory
« Reply #1 on: July 30, 2012, 10:00:46 am »
No. But you can either compress them in memory (Texture.compress()) or externalize them with (please note that there's a flaw in the docs of that method. It should read "Virtualizer" not "TextureVirtualizer").