Skip to content

Commit b4d4acb

Browse files
committed
Add progress logging for integrator initialization
1 parent bbd4c0a commit b4d4acb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cli/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,15 @@ int main(int argc, char* argv[])
179179
return 0;
180180
}
181181

182+
std::cout << "\rInitializing integrator.. " << std::flush;
182183
Integrator* integrator = Integrator::Create(alloc, ri.integrator_info, &accel, ri.scene.GetLights(), sampler);
183184
if (!integrator)
184185
{
185186
std::cerr << "Failed to create integrator" << std::endl;
186187
return 0;
187188
}
188189

190+
std::cout << "\rInitializing integrator.. " << timer.Mark() << "s" << std::endl;
189191
Rendering* rendering = integrator->Render(alloc, camera);
190192
rendering->WaitAndLogProgress();
191193

0 commit comments

Comments
 (0)