Page MenuHome

Cycles: Add support for debug passes
ClosedPublic

Authored by Sergey Sharybin (sergey) on Oct 4 2014, 2:33 PM.

Details

Summary

Currently only summed number of traversal steps and intersections used by the
camera ray intersection pass is implemented, but in the future we will support
more debug passes which would help checking what things makes the scene slow.
Example of such extra passes could be number of bounces, time spent on the
shader tree evaluation and so.

Implementation from the Cycles side is pretty much straightforward, could only
mention here that it's a build-time option disabled by default.

From the blender side it's implemented as a PASS_DEBUG with several subtypes
possible. This way we don't need to create an extra DNA pass type for each of
the debug passes, saving us a bits.

Diff Detail

Repository
rB Blender

Event Timeline

Sergey Sharybin (sergey) retitled this revision from to Cycles: Add support for debug passes.
Sergey Sharybin (sergey) updated this object.
Campbell Barton (campbellbarton) edited edge metadata.

LGTM

source/blender/makesrna/intern/rna_render.c
690

prefer to end these with comma's - makes less noisy diff's.

This revision is now accepted and ready to land.Oct 4 2014, 2:40 PM
source/blender/makesrna/intern/rna_render.c
690

So do i, missed the comma by accident actually.

Sergey Sharybin (sergey) edited edge metadata.

Fixed the comma thing.

This revision was automatically updated to reflect the committed changes.