Rendering & implementation · 2 / 10

GPU Instancing

同じメッシュの多数の個体をまとめて描く。

Compare in motion

広い草原

Synchronized comparison
AReference
個別に描画要求を出すモデル

個別に描画要求を出すモデル

BGPU Instancing100%
同形の多数描画の呼出しを減らせる

同形の多数描画の呼出しを減らせる

Loading demo…

Scrub to pause and inspect. At 0%, B matches A; at 100%, B shows the effect. The scene repeats every 8 seconds.

Look for: 同じメッシュをまとめて描く → 草が大量に揺れる。

This model simplifies the technique to show its use case and effect. Operation counts describe the model; they are not performance measurements.

Read the storyboard

例: 広い草原

  1. 1. Start

    同じ草を多数配置

  2. 2. Change

    同じメッシュをまとめて描く

  3. 3. Result

    草が大量に揺れる

同形の多数描画の呼出しを減らせる。時間変化を示す模式図です。実際の描画結果や処理速度を再現したものではありません。

How it works

  1. 1. Input

    同じ形の多数の個体

  2. 2. Process

    共有メッシュをまとめて描く

  3. 3. Result

    描画呼出しの削減

A schematic of GPU Instancing. It shows the relationship between input, process, and result; exact values and rendering depend on the implementation.

Further reading

Unity ComputeShader ↗

A general reference for this subcategory.