From a7e24222cfcd430862ea7674298fff911d055b7f Mon Sep 17 00:00:00 2001 From: Miguel Pozo Date: Mon, 8 Jul 2024 15:23:58 +0200 Subject: [PATCH] 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 --- source/blender/draw/engines/eevee_next/eevee_instance.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/blender/draw/engines/eevee_next/eevee_instance.cc b/source/blender/draw/engines/eevee_next/eevee_instance.cc index cce2c718b29..c44ff500970 100644 --- a/source/blender/draw/engines/eevee_next/eevee_instance.cc +++ b/source/blender/draw/engines/eevee_next/eevee_instance.cc @@ -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(); }