Blender Git Loki

Git Commits -> Revision 915766f

Revision 915766f by Mai Lavelle (master)
May 2, 2017, 18:26 (GMT)
Cycles: Branched path tracing for the split kernel

This implements branched path tracing for the split kernel.

General approach is to store the ray state at a branch point, trace the
branched ray as normal, then restore the state as necessary before iterating
to the next part of the path. A state machine is used to advance the indirect
loop state, which avoids the need to add any new kernels. Each iteration the
state machine recreates as much state as possible from the stored ray to keep
overall storage down.

Its kind of hard to keep all the different integration loops in sync, so this
needs lots of testing to make sure everything is working correctly. We should
probably start trying to deduplicate the integration loops more now.

Nonbranched BMW is ~2% slower, while classroom is ~2% faster, other scenes
could use more testing still.

Reviewers: sergey, nirved

Reviewed By: nirved

Subscribers: Blendify, bliblubli

Differential Revision: https://developer.blender.org/D2611

Commit Details:

Full Hash: 915766f42df56a0fee47e8eb21f8b024f01afe18
Parent Commit: 89b1805
Lines Changed: +1043, -389

1 Added Path:

/intern/cycles/kernel/split/kernel_branched.h (+150, -0) (View)

24 Modified Paths:

/intern/cycles/blender/addon/ui.py (+1, -2) (Diff)
/intern/cycles/device/device_split_kernel.cpp (+1, -0) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_cpu_impl.h (+1, -1) (Diff)
/intern/cycles/kernel/kernels/cuda/kernel_split.cu (+1, -1) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_subsurface_scatter.cl (+1, -2) (Diff)
/intern/cycles/kernel/kernel_path.h (+5, -1) (Diff)
/intern/cycles/kernel/kernel_path_branched.h (+4, -1) (Diff)
/intern/cycles/kernel/kernel_path_surface.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_subsurface.h (+1, -3) (Diff)
/intern/cycles/kernel/kernel_types.h (+39, -20) (Diff)
/intern/cycles/kernel/split/kernel_data_init.h (+7, -12) (Diff)
/intern/cycles/kernel/split/kernel_direct_lighting.h (+32, -34) (Diff)
/intern/cycles/kernel/split/kernel_do_volume.h (+146, -34) (Diff)
/intern/cycles/kernel/split/kernel_holdout_emission_blurring_pathtermination_ao.h (+47, -58) (Diff)
/intern/cycles/kernel/split/kernel_indirect_background.h (+3, -3) (Diff)
/intern/cycles/kernel/split/kernel_indirect_subsurface.h (+20, -17) (Diff)
/intern/cycles/kernel/split/kernel_next_iteration_setup.h (+144, -76) (Diff)
/intern/cycles/kernel/split/kernel_shader_eval.h (+23, -2) (Diff)
/intern/cycles/kernel/split/kernel_shadow_blocked_ao.h (+20, -22) (Diff)
/intern/cycles/kernel/split/kernel_shadow_blocked_dl.h (+61, -18) (Diff)
/intern/cycles/kernel/split/kernel_split_common.h (+31, -30) (Diff)
/intern/cycles/kernel/split/kernel_split_data_types.h (+41, -4) (Diff)
/intern/cycles/kernel/split/kernel_subsurface_scatter.h (+262, -47) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021