Speed and Optimize¶
What a frame costs¶
The time a frame takes grows with:
- The number of pixels traced: the render size, made smaller by DLSS Quality with the DLSS method.
- Samples per Frame: twice the samples, about twice the time.
- Bounces, in scenes where light bounces a lot: glass, mirrors, bright interiors.
- Haze: Haze Samples, Multiple Scattering and a Haze Texture all add to it.
Optimize¶
The Pathtracer runs a trace prepared for its current settings, leaving out everything the scene doesn't use. When you change a setting the trace was prepared for, it switches at once to a flexible trace that handles any settings but runs a little slower, and Optimized turns off. Those settings are:
- an environment image, on or off;
- the first point primitives or lines in the scene;
- haze, its Variation, Multiple Scattering or a Haze Texture;
- the first light of a kind, such as the first spot or the first sun;
- the first material with Dispersion;
- the first see-through material: Opacity below 1, an Opacity Map, or Base Color Alpha on a PT MAT, or the alpha of a PBR or Phong MAT;
- the first material with Sheen or Thin Film;
- the DLSS method and its Stable Planes.
Everything else, such as colours, strengths, positions and sizes, changes without leaving the prepared trace.
When the settings are final, press Optimize on the Scene page. It prepares a trace for them, which pauses TouchDesigner for about ten seconds; settings this Pathtracer was optimized for before take no time at all. The status bar says when the pause starts and how long it took. Optimized turns on again.
A new Pathtracer starts on the flexible trace, and so does a copy, a renamed one or one loaded from a .tox: TouchDesigner keeps compiled shaders per operator path, so a trace optimized elsewhere would have to compile again. Press Optimize once the scene is set up. A saved project opens at the speed it was saved at. Optimized For on the Output page shows the settings it last optimized for.
Heavy scenes that don't change¶
Lock Input freezes the scene's geometry and the PT T3Ds' textures as they are. Changes to them no longer reach the render until you turn it off again.