Hello,
When trying to optimise render startup times in Solaris/Karma, we noticed that material translation in Hydra accounts for most of the time to first pixel in our larger assemblies. To optimise this within our pipeline, we tested an uber shader approach: Instead of packaging materials as unique mtlx networks per asset, we referenced a single instanceable material across all assets, with asset-specific settings supplied through primvars on each asset’s geometry.
While this optimised the USD scene graph (instanceable material references share one network through a material prototype), Hydra still created separate material entries for the asset-local paths, and the translation overhead remained. This matches the limitation described in Nested instanced materials?.
To test the potential gains, we created a larger stress test using production-like asset composition: 500 assets, each referenced four times with different model/material variant selections, producing 2,000 native asset prototypes. The assets used three complex library materials, two pipeline utility materials, all as instanceable references, and assignments within deep hierarchies. In this configuration, time to first pixel was around 9 minutes. We then disabled the internal materials through a variant and used an inherit to supply replacement bindings to materials at one shared scene location. This reduced time to first pixel to around 15 seconds, while preserving each asset’s appearance through primvars.
The attached smaller example contains 100 assets with five model variants each, all placed simultaneously: 500 native asset prototypes. Each placement has a different colour supplied through a primvar, while the material parameters stay identical.
-
local.usdauses self-contained assets with asset-local instanceable material references. -
shared.usdadisables those local materials and binds the asset roots to one shared scene material.material_instancing_primvar_colours.zip (39.4 KB)
Both cases have one USD material prototype and produce identical images. Hydra material entries drop from 500 to one, and Karma CPU time to first pixel drops from 19.7 s to 1.6 s on Houdini 21.0.824 / USD 25.05.
Interestingly, Karma reports “501 total, 2 unique” CPU shaders in the local case, suggesting it recognises the duplicates later, after the repeated ingestion work.
These results suggest substantial potential for reducing render startup times by preserving material sharing through Hydra. Is this performance impact already known to the Hydra team? Are we missing an existing optimisation or a recommended authoring approach for this use case? And what are the plans for handling this internally in Hydra - is work underway, or is it part of the future roadmap?
Any insights on this would be greatly appreciated!