Skip to content

Commit 62a59c3

Browse files
Performance improvements to MDL render tests (#2805)
Add --nocc to disable class compilation. Add --noaux to disable auxiliary buffers.
1 parent e30b0b5 commit 62a59c3

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

source/MaterialXTest/MaterialXRenderMdl/RenderMdl.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ bool MdlShaderRenderTester::runRenderer(const std::string& shaderName,
185185
command += " --materialxtest_mode"; // align texcoord space with OSL
186186

187187
// Application setup
188+
command += " --noaux";
189+
command += " --nocc";
188190
command += " --no_shader_opt"; // does not pay off for the testsuite
189191
command += " --no_window";
190192
command += " --warning"; // filter info messages from the log
@@ -225,14 +227,6 @@ bool MdlShaderRenderTester::runRenderer(const std::string& shaderName,
225227
log << "\tLog: " << line << std::endl;
226228
}
227229
validated = true;
228-
229-
// Remove output images for auxiliary buffers (not needed here, no error checking)
230-
std::string aux_buffers[]
231-
= { "_albedo", "_normal", "_albedo_diffuse", "_albedo_glossy", "_roughness" };
232-
for (const auto& aux_buffer : aux_buffers)
233-
{
234-
std::remove((shaderPath + "_mdl" + aux_buffer + ext).c_str());
235-
}
236230
}
237231
catch (mx::ExceptionRenderError& e)
238232
{

0 commit comments

Comments
 (0)