(03-18-2011 05:28 PM)dragonfly3 Wrote: Again, I agree. Why would you use 4 textures in one material unless absolutely necessary? Especially if you're having optimization problems. Personally, I have been able to limit my materials to 1 texture. I try to reduce as much as possible where my materials and models are concerned for this very reason. It only makes sense that the more you require the engine to draw and load the worse the performance will be.
4 textures for added shading and looks is ok, but if you have 9 parts each have their own material and each have 3 or 4 textures, the size of the textures are 1024x1024 taking each 1.3MB each
That equals approximately to this
9*4*1.3MB = 46,8MB of video memory which could've been easily reduced to
4*4*1.3Mb = 20.8MB of Video memory
further more the various scale of the textures differs so much in their materials
eg 1600x1200 = 2048x2048 which is around 1.8Mb-2.2MB somewhere around there eg because of this broken textures it suddenly is
9*4*1.8MB = 64,8MB of Video memory
but if they keep using those texture sizes even more the parts reduction and material sharing is needed
4*4*1.8MB = 28,8MB of Video memory
Not to mention the extra processing of these textures on the GPU adds to the draw overhead.
Eventually you run out of video memory and it starts offloading it's storing to your DRAM which is considerably slower than when it's in video memory.
I believe that is how it goes, correct me if I am wrong.