Jump to content

how to delete shader?


photo

Recommended Posts

how to delete shader , not change world?

 

check shader count is 332025.

 

shader is loaded in rendering.

 

ungine engine's material system Accumulates in parent material memory.
 

when i delete material ( child meterial )

 

i want that shader is deleted.

Link to comment

Don't think there is a way to delete shader at the moment. Also the number of compiled shader permutations is not necessarily reduced based on child material deletions, it mainly depends on different shader options. Also the amount of memory saved should be quite small compared to texture usage.

Link to comment

i tested render_manager_load_shaders option.

 

render_manager_load_shaders = 0  => 1.6G
render_manager_load_shaders = 1  => 2.6G ( shutdown )

 

two option different?

 

why not increase memory ?

Link to comment

There ie indeed no way to delete a shader, since it does not make much sense memory-wise. Please, simply do not use render_manager_load_shaders = 1. If set 0, only those shaders that currently need to be used, are loaded. In this case shaders won't eat up much space, fully agreed with Ulf here.

Link to comment

i do not use render_manager_load_shaders = 1.

 

same test long time playing.

 

i look at material system.

 

shader only data size not is many memory allocation.

 

A seem to have a lot of string ( define , name , etc ... ) in wrap class material

Link to comment
×
×
  • Create New...