1
$\begingroup$

I want to know what's the best image format to use on textures that consumes the least ammount of VRAM during render.

I'm trying to render a scene in Blender 2.8 EEVEE but because of the textures, baking the IL takes a VERY long time and render times are around 10min mark.

I assume it's the textures that are causing this because the scene is only 1.5 million tris. But the vram consumption is 7GB but I only have a 4GB GPU (GTX970).

So I want to know which image file type will consume the least ammount of VRAM doing rendering.

$\endgroup$
2
$\begingroup$

The GPU does not work in terms of jpeg, png, tiff, tga, etc. During rendering every image that is used as a texture has to be stored in vram using a format that is determined by the engine, so in this case Eevee. This can range from uncompressed to various hlsl/glsl/cuda friendly compressed variants. You cannot really influence that format unless Eevee exposes its internal texture format as a config option.

The source image format you use for your textures will be converted to that internal format once, not on every frame, unless you change your source texture every frame via script or something.

$\endgroup$
  • $\begingroup$ I'm confused. If I use a 16bit 4k PNG it says it requires 150mb to render. But if I use a 4k jpeg it only requires 30mb. So clearly, one takes more memory then the other. $\endgroup$ – Pherion Apr 15 '19 at 18:30
  • 1
    $\begingroup$ Yes because you used a 16 bit per channel color depht in your png, but only 8 bit with the jpeg. But it does not matter if its a jpeg or an png, only the bit depht matters. using this logic the "best" format would be a 1 bit black or white image, but i do not think that you like to go for that ;) $\endgroup$ – Gerald Degeneve Apr 15 '19 at 19:48
  • $\begingroup$ Ah I see. I saw that tga file format also gives better memory usage and has higher qaulity then the jpeg. Is there a better file type? $\endgroup$ – Pherion Apr 15 '19 at 20:06
  • $\begingroup$ Again ... the file type does not matter in terms of vram consumption. If you want to know what file format to use in general you can do that via another question ;) $\endgroup$ – Gerald Degeneve Apr 16 '19 at 17:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.