Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Jose on August 25, 2013, 04:29:05 PM

Title: Images size
Post by: Jose on August 25, 2013, 04:29:05 PM
Hi,

I'm wondering if there's any difference (performance speaking) maintaining the width and size of an image in powers of two if the video card need them that way. For example, is there any improvement in performance saving images 512x512 size instead 350x225?

Thanks in advance.
Title: Re: Images size
Post by: 2.0 on August 25, 2013, 08:34:59 PM
Hi,

I'm wondering if there's any difference (performance speaking) maintaining the width and size of an image in powers of two if the video card need them that way. For example, is there any improvement in performance saving images 512x512 size instead 350x225?

Thanks in advance.

Hi,

Image of 350x225 pixels in the videomemory automatically will be converted to 512x256 texture.
512 is the next power of 2 value after 350. 256, accordingly - after 225.
So manually you don't need to do anything (or you may try to decrease size of images).
Title: Re: Images size
Post by: Jose on August 25, 2013, 10:11:05 PM
Thanks for answering 2.0, you're right a 350x225 image will be converted to 512x256 not to 512x512. So, there's no performance gain in saving the image in 512x256?
Title: Re: Images size
Post by: 2.0 on August 25, 2013, 11:08:31 PM
Thanks for answering 2.0, you're right a 350x225 image will be converted to 512x256 not to 512x512. So, there's no performance gain in saving the image in 512x256?

I think, no.
Title: Re: Images size
Post by: Jose on August 26, 2013, 01:44:26 PM
Thank you very much 2.0!