From ea3c376b4d75fd72b94ccc44925ad82dbac9e963 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Mon, 8 Jul 2024 15:53:35 +0200 Subject: [PATCH] Cycles: Avoid spam Metal pipeline creation during viewport animation This PR adds a tag to prevent `kernel_data.integrator.seed` being baked into Metal pipelines as a specialisation constant when full kernel specialisation is enabled. This stops new pipelines from being continually compiled when animation is playing in live viewport mode. Pull Request: https://projects.blender.org/blender/blender/pulls/124349 --- intern/cycles/kernel/data_template.h | 1 + 1 file changed, 1 insertion(+) diff --git a/intern/cycles/kernel/data_template.h b/intern/cycles/kernel/data_template.h index 3ecce93bdad..358e419f380 100644 --- a/intern/cycles/kernel/data_template.h +++ b/intern/cycles/kernel/data_template.h @@ -181,6 +181,7 @@ KERNEL_STRUCT_MEMBER(integrator, int, caustics_reflective) KERNEL_STRUCT_MEMBER(integrator, int, caustics_refractive) KERNEL_STRUCT_MEMBER(integrator, float, filter_glossy) /* Seed. */ +KERNEL_STRUCT_MEMBER_DONT_SPECIALIZE KERNEL_STRUCT_MEMBER(integrator, int, seed) /* Clamp. */ KERNEL_STRUCT_MEMBER(integrator, float, sample_clamp_direct)