mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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
This commit is contained in:
parent
b454416927
commit
0220bdc2d5
1 changed files with 4 additions and 0 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue