More Repetitions vs. Larger Textures

Posted By: DeKO_Mania

More Repetitions vs. Larger Textures - 08/10/07 00:50

I was just texturing my first level with a 64x64 texture that I created, and was wondering, would it be better to repeat a 64x64 texture 4 times, or just create a single 128x128 texture. I guess what I am really asking is, if you repeat a texture, does it use any extra memory per repetition?

Regards,
DeKO_Mania
Posted By: Keebo

Re: More Repetitions vs. Larger Textures - 08/10/07 02:22

A larger texture file is going to consume more memory. I feel safe in saying that the texture would look the same if you just repeated in your paint program using a larger file size.

If you increase the detail of the texture while making it a larger file than I think that would be worth the extra memory usage. YMMV.
Posted By: DeKO_Mania

Re: More Repetitions vs. Larger Textures - 08/10/07 02:30

What I am asking is about repeating the texture in the engine, not in my paint program. Basically, if I repeat a 32x32 texture 4 times (in the engine), would that use the same amount of memory as if I just used 1 64x64 texture?

Regards,
DeKO_Mania
Posted By: Keebo

Re: More Repetitions vs. Larger Textures - 08/10/07 03:17

If you repeat the texture by scaling it then it will use more memory. By scaling I am referring to x.scale and y.scale within the texture properties of the object.

At least this was the case in A5. I am still getting to know A6/A7 and this may have changed.

But I still may be misunderstanding how you are repeating the texture. Its been a long day.
Posted By: Claybotech

Re: More Repetitions vs. Larger Textures - 08/10/07 04:47

Repeating a 64x64 testure 4 times will use less video memory than loading a 128x128 texture. As the image is already loaded into video memory it shouldnt use more memory if it is just repeating something.

However, with current video cards/ PC memory, I would really go below 128x128.
This will also depend however on how many textures I am using in my game.

Hope this helps.
Posted By: DeKO_Mania

Re: More Repetitions vs. Larger Textures - 08/10/07 23:04

@Claybotech: Yes, that helps. It is not extreamly important that my textures are VERY detailed, so low-res textures are a good solution, as they will run on just about any computer. I am trying to avoid anything above 512x512, and even that is a little high.

Anyways, thank you!
Regards,
DeKO_Mania
© 2024 lite-C Forums