From 0220bdc2d542be046fe358ef6129ecf1fd517dff Mon Sep 17 00:00:00 2001 From: Lukas Stockner Date: Tue, 24 Jan 2023 17:02:25 +0100 Subject: [PATCH] Cycles: Tests: Add option to increase SPP for manual comparisons Useful for validating changes when sampling/noise changes: - First run with BLENDER_TEST_UPDATE=1 and e.g. CYCLESTEST_SPP_MULTIPLIER=32 - Apply your change - Run with only CYCLESTEST_SPP_MULTIPLIER=32 - Compare - Reset the SVN repo Differential Revision: https://developer.blender.org/D17107 --- tests/python/cycles_render_tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/python/cycles_render_tests.py b/tests/python/cycles_render_tests.py index c7e12dd5b7c..1d30a696e98 100644 --- a/tests/python/cycles_render_tests.py +++ b/tests/python/cycles_render_tests.py @@ -85,6 +85,10 @@ def get_arguments(filepath, output_filepath): if custom_args: args.extend(shlex.split(custom_args)) + spp_multiplier = os.getenv('CYCLESTEST_SPP_MULTIPLIER') + if spp_multiplier: + args.extend(["--python-expr", f"import bpy; bpy.context.scene.cycles.samples *= {spp_multiplier}"]) + if subject == 'bake': args.extend(['--python', os.path.join(basedir, "util", "render_bake.py")]) elif subject == 'denoise_animation':