minor changes

This commit is contained in:
hal8174 2024-06-30 15:57:35 +02:00
parent 96dd15a80e
commit a6d55fb3c4
2 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ void ApplicationIntegrator::drawGUI() {
if (ImGui::Checkbox("bootstrap", &bootstrap))
resetRender();
if (ImGui::SliderInt("Bootstrap amount", &bootstrap_amount, 1, 1000000))
if (ImGui::SliderInt("Bootstrap amount", &bootstrap_amount, 1, 2000000))
resetRender();
if (ImGui::SliderInt("chain lengths", &chain_lengths, 1, 200000))
@ -187,8 +187,8 @@ void ApplicationIntegrator::mltRender(int *pixels, int width, int height,
}
if (l > 0.0) {
data.film.addSplat(x_pixel, y_pixel, (f / l) * a);
if (RandomSampler_get1D(chains[i].sampler) < a) {
data.film.addSplat(x_pixel, y_pixel, f / l);
accepted_count.fetch_add(1, std::memory_order_relaxed);
// if (i == 0)
// printf("%d accept %d %f %f %f\n", i, chains[i].is_large_step(), last_l[i], l, l / last_l[i]);