SubstanceDesigner:ノードを16×16以下のサイズにするとパフォーマンスが落ちるのは本当か

SubstanceDesigner:ノードを16×16以下のサイズにするとパフォーマンスが落ちるのは本当か

ドキュメントでこんな記載を見つけた。

Below 16 the resolution is not capped but it is not recommended to go lower, as there are no performance gains below that threshold. To the contrary, performance actually drops because of the specific implementation of the Substance engine. Therefore, use 16×16 as a general minimum resolution in Substance compositing graphs.

https://substance3d.adobe.com/documentation/sddoc/output-size-102400067.html

ノードのサイズを 16px × 16px以下にサイズにするとパフォーマンス的には有利にならずむしろ落ちることもあるので最小サイズは16までにしてね、とある。

という事で本当かどうか確認した。

上からノードのピクセルサイズが1px × 1px~4k × 4kサイズで並んでいる。HQブラーが重そうなので処理時間判定にはそれを使った。

結論

明確ではないが確かに16x × 16未満のサイズのほうが処理時間が大きいこともあるが、2kで9.41msec、4kで33.15msecなのに対して、16 × 16未満では0.1msec増えたとかそんなオーダーの戦いなので、

16×16サイズより小さくならないようにしてもいいけれど、それ以上小さいサイズがあっても気にするほどでもない。

という結論を見た。どんぐりの背比べだ。

ダウンロード

検証ファイルはここに。

https://github.com/logicalmodelin/LGMLtools/tree/301bf96a29dc68f4f3c40ceb40f0f8d00eedeb33/blog20221127_16x16performance_test

この記事を参照している記事

コメントを残す

Previous post SubstancePlayerでアニメーション制御しやすいパラメータ設計
Next post SubstanceDesigner: トーンカーブでアニメーションカーブを実現してみる