eradiate.kernel.effective_spp#

eradiate.kernel.effective_spp(sampler, spp)#

Return the sample count a Mitsuba sampler actually uses when asked for spp samples.

Samplers other than independent round the requested sample count up (e.g. to a square number for stratified). mitsuba.render() applies the same rounding.

Parameters:
  • sampler (mitsuba.Sampler) – Sampler to query. It is left unmodified.

  • spp (int) – Requested sample count.

Returns:

int – Sample count used by sampler.