Freeze when saving Material being compiled
When saving a Material that was recently edited and not compiled for preview/apply yet, the editor may freeze for an unspecified amount of time while it is trying to catch up with compiling shaders. This is probably unintended as killing the engine using the task manager results in the material being saved but not compiled and no progress was made compiling other shaders.
In my project, which when opened on a different computer, that results in a freeze of over 2.5 hours as it tends to compile over 14000 shaders - even though we only have 283 materials total. (How do you get 14000 shaders from 283 materials? We need some sort of statistics display for that on the material as to how many shaders it will create...)
asked Jun 11 '16 at 11:10 PM in Using UE4
This is not a bug, but expected that your computer is going to run a bit slower when shaders are compiling. If you are opening a copied project or converted project for the first time, then you will generally want to wait for your shaders to compile as your machine is utilizing a good bit of processing power to compute the shaders. The 283 materials and 14,000 shaders sounds about the right number. Shader compile times depend on the complexity of your materials and your machine.
Within each material you can toggle the statistics to view the instruction count for static and dynamic lighting, vertex shader, and texture samplers. You can also use the Shader Complexity visualizer within the viewport toolbar to observe the complexity of your materials placed in the scene. I assisted a user not long ago who had a question about optimizing his shaders.
If you have further questions or need additional assistance, please let me know.
answered Jun 14 '16 at 03:31 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here