Question regarding texture size and performance

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
Chris_with_a_Gun
Greenskin
Posts: 106
Joined: Wed Nov 24, 2004 5:58 pm

Question regarding texture size and performance

Post by Chris_with_a_Gun »

Hi,

I've three grey-scale maps for a material, what is (in theory) faster: The three individual textures stored as a grey-scale PNG or one colored PNG where each map is stored in a sperate channel (R, G & B). I've tested it, but couldn't get much of a difference. Although this may change the time content grows - what whould be the better way based on grapics memory usage and texture lookup time. Or doesn't really make any difference?

thanks

User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19265
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Post by sinbad »

Combining them is better, especially for shaders since it only requires one texture unit to be accessed.

Post Reply