Cycles / Branched Path: Some simplifications for main loop.
authorThomas Dinges <blender@dingto.org>
Mon, 15 Jun 2015 21:50:29 +0000 (23:50 +0200)
committerThomas Dinges <blender@dingto.org>
Mon, 15 Jun 2015 21:50:29 +0000 (23:50 +0200)
commit53e3e4633244facb76740a58f1b2b9b6c1e2a00d
treec156a1a74a0614ccd5fd0a0a7607db210af49606
parent888ed6b7f15bf30f978fabc134e1d35cf9fcee38
Cycles / Branched Path: Some simplifications for main loop.

The main loop only handles transparent intersections from the camera ray.
Therefore we can simplify some things.

* Avoid PATH_RAY_CAMERA check, this is always true.
* Avoid path_state_next() call, we can just set transparent flag and increase transparent bounces. This way we avoid the function call and some branching.

Also remove debug num_ray_bounces++, this is incorrect here as no indirect bounce happens here.

Should be no functional changes.
intern/cycles/kernel/kernel_path_branched.h