stratified sampler, refresh only when window is active
Stratified Sampling, BSDFQueryRecord, Medium, code cleaning