Page MenuHome

Cycles: simplify handling of ray differentials
ClosedPublic

Authored by Brecht Van Lommel (brecht) on Aug 12 2022, 8:25 PM.

Details

Summary
  • Store compact ray differentials in ShaderData and compute full differentials on demand. This reduces register pressure on the GPU.
  • Remove BSDF differential code that was effectively doing nothing as the differential orientation was discarded when making it compact.

This gives a 1-5% speedup with RTX A6000 + OptiX in our benchmarks, with the
bigger speedups in simpler scenes.

Diff Detail

Repository
rB Blender
Branch
master
Build Status
Buildable 23342
Build 23342: arc lint + arc unit

Event Timeline

Brecht Van Lommel (brecht) requested review of this revision.Aug 12 2022, 8:25 PM
Brecht Van Lommel (brecht) created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Aug 15 2022, 1:53 PM
This revision was automatically updated to reflect the committed changes.