Description
-In our code the base flatten material contains a lot of material switches.-

-Another person here found that if an instance material has switches, then shader code is generated for it at cook time and with a lot of proxy meshes that is a lot of extra data.-

-They found that if you have a common instance material with the switches and instance off that, then you can save a huge amount of mem (I saw a 600+MB saving alone).-

-i.e.-

-this is current:-

-base material (with switches)->instance material (with switches, textures set and params)-

-but change to:-

-base material (with switches)>instance material (with switches)>instance material (this is used on the mesh and has textures set and params)-

-And this will save a HUGE amount.-

-So a collection of instance materials with switches, perhaps like a cache of them would be great too.-

 

See comments. Refactor would be the next step.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-44990 in the post.

0
Login to Vote

Won't Fix
CreatedMay 12, 2017
ResolvedAug 18, 2021
UpdatedAug 18, 2021