Log inGet started
Package

radianceCache.package

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

rc_gather

Fills the cache, one slot per thread and a fraction of the table per frame.

Runs over cache slots rather than pixels, which is what the cache buys: a thousand pixels looking at one wall share one gather, and that gather is not repeated next frame. Each frame visits the slots whose index falls on this frame's residue, so the table turns over every stride frames.

What a slot gathers is a form-factor sum over the surrounding pixels, averaged into what the slot already holds. Also releases slots nothing has asked for in maxAge frames.