Commit: 0220bdc2d542be046fe358ef6129ecf1fd517dff Author: Lukas Stockner Date: Tue Jan 24 17:02:25 2023 +0100 Branches: master https://developer.blender.org/rB0220bdc2d542be046fe358ef6129ecf1fd517dff
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 =================================================================== M tests/python/cycles_render_tests.py =================================================================== 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': _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs