wxywxy.ji Posted February 15, 2013 Share Posted February 15, 2013 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
ulf.schroeter Posted February 15, 2013 Share Posted February 15, 2013 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
wxywxy.ji Posted February 18, 2013 Author Share Posted February 18, 2013 i tested render_manager_load_shaders option. render_manager_load_shaders = 0 => 1.6Grender_manager_load_shaders = 1 => 2.6G ( shutdown ) two option different? why not increase memory ? Link to comment
manguste Posted February 22, 2013 Share Posted February 22, 2013 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
wxywxy.ji Posted February 26, 2013 Author Share Posted February 26, 2013 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
manguste Posted February 26, 2013 Share Posted February 26, 2013 I'm sorry, I cannot understand you. What are you trying to say by that? Link to comment
Recommended Posts