EEVEE: Show compilation subprocesses information

Inform the user when EEVEE is compiling materials and parallel
compilation is disabled.

Pull Request: https://projects.blender.org/blender/blender/pulls/124249
This commit is contained in:
Miguel Pozo
2024-07-08 15:23:58 +02:00
parent 80a0c4237a
commit a7e24222cf

View File

@@ -560,6 +560,13 @@ void Instance::draw_viewport()
if (materials.queued_shaders_count > 0) {
std::stringstream ss;
ss << "Compiling Shaders (" << materials.queued_shaders_count << " remaining)";
if (!GPU_use_parallel_compilation() &&
GPU_type_matches_ex(GPU_DEVICE_ANY, GPU_OS_ANY, GPU_DRIVER_ANY, GPU_BACKEND_OPENGL))
{
ss << "\n"
<< "Increasing Preferences > System > Max Shader Compilation Subprocesses "
<< "may improve compilation time.";
}
info = ss.str();
DRW_viewport_request_redraw();
}