Skip to content

Commit

Permalink
deprecated samples_per_pass parameter, removed oldpath.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Nov 23, 2022
1 parent 47a3958 commit 8ba8528
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 177 deletions.
1 change: 0 additions & 1 deletion src/integrators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ add_plugin(depth depth.cpp)
add_plugin(direct direct.cpp)
add_plugin(moment moment.cpp)
add_plugin(path path.cpp)
add_plugin(oldpath oldpath.cpp)
add_plugin(ptracer ptracer.cpp)
add_plugin(stokes stokes.cpp)
add_plugin(volpath volpath.cpp)
Expand Down
176 changes: 0 additions & 176 deletions src/integrators/oldpath.cpp

This file was deleted.

6 changes: 6 additions & 0 deletions src/render/integrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ MI_VARIANT SamplingIntegrator<Float, Spectrum>::SamplingIntegrator(const Propert
}

m_samples_per_pass = props.get<uint32_t>("samples_per_pass", (uint32_t) -1);
if (m_samples_per_pass != (uint32_t) -1) {
Log(Warn, "The 'samples_per_pass' is deprecated, as a poor choice of "
"this parameter can have a detrimental effect on performance. "
"Please leave it undefined; Mitsuba will then automatically "
"choose the necessary number of passes.");
}
}

MI_VARIANT SamplingIntegrator<Float, Spectrum>::~SamplingIntegrator() { }
Expand Down

0 comments on commit 8ba8528

Please sign in to comment.