Rendering Profiler (レンダリングプロファイラー) は、シーンをレンダリングするために CPU と GPU が行う処理に関する統計や情報を表示します。これらの統計情報を利用して、シーンのさまざまな領域のリソース強度を測定し、最適化に役立てることができます。
チャートには、アプリケーションがレンダリングしたバッチ (Batches Count)、SetPass Calls、三角形の数 (Triangles Calls)、頂点数 (Vertices Counts) が表示されます。下のペインには、より多くのレンダリング統計 (ゲームビューの 統計ウィンドウ ウィンドウに表示されているものと同等) が表示されます。
Rendering Profiler モジュールのチャートは、以下の 4 つのカテゴリに分かれています。
チャート | 説明 |
---|---|
Batches | そのフレームで処理された バッチ の数。 |
SetPass Calls | そのフレームでゲームオブジェクトのレンダリングに使用したシェーダーパスを Unity が切り替えた回数。1 つのシェーダーには複数のシェーダーパスが含まれている場合があり、それぞれのパスでシーンのゲームオブジェクトのレンダリングが異なります。 |
Triangles | そのフレームで処理された 三角形 の数。 |
Vertices | そのフレームで処理された 頂点 の数。 |
Rendering Profiler モジュールをクリックすると、ウィンドウの下半分にある詳細ペインに詳細なレンダリング統計が表示されます。これらの統計情報は、統計ウィンドウ に表示される統計情報と同様です。
詳細ペインの左上の Open Frame Debugger を選択すると、フレームデバッガー が開き、フレームをレンダリングした個々のドローコールの情報が表示されます。
これらの統計情報は、ProfilerRecorder API や Profiler Module Editor でも入手可能で、カスタム製のProfiler モジュールに追加することができます。
統計 | 説明 |
---|---|
SetPass Calls | そのフレームでゲームオブジェクトのレンダリングに使用したシェーダーパスを Unity が切り替えた回数。1 つのシェーダーには複数のシェーダーパスが含まれている場合があり、それぞれのパスでシーンのゲームオブジェクトのレンダリングが異なります。 |
Draw Calls | そのフレームで送信されたドローコールの総数。Unity はゲームオブジェクトを画面にレンダリングする際にドローコールを送信します。この数には、バッチ処理形式でないドローコールと、動的および静的なバッチ形式ドローコールが含まれます。 |
Total Batches | そのフレームで処理された バッチ の総数。この数には、動的および静的なバッチ形式ドローコールが含まれます。 |
Tris | そのフレームで処理された 三角形 の数。 |
Verts | そのフレームで処理された 頂点 の数。 |
(Dynamic Batching) | このセクションは、動的バッチ に関する統計情報を表示します。 |
Batched Draw Calls | 動的バッチ処理にまとめられられたドローコールの数。 |
Batches | そのフレームで処理された動的なバッチ処理の数。 |
Tris | 動的バッチ処理に含まれるゲームオブジェクトの三角形の数。 |
Verts | 動的バッチ処理に含まれるゲームオブジェクトの頂点数。 |
(Static Batching) | このセクションは、静的バッチ に関する統計情報を表示します。 |
Batched Draw Calls | 静的バッチ処理にまとめられられたドローコールの数。 |
Batches | そのフレームで処理された静的なバッチ処理の数。 |
Tris | 静的バッチ処理に含まれるゲームオブジェクトの三角形の数。 |
Verts | 静的バッチ処理に含まれるゲームオブジェクトの頂点数。 |
(Instancing) | このセクションは、GPU インスタンシング に関する統計情報を表示します。 |
Batched Draw Calls | インスタンスバッチ処理にまとめられられたドローコールの数。 |
Batches | そのフレームでインスタンス化されたゲームオブジェクトをレンダリングするために行われたバッチ処理の数。 |
Tris | インスタンス化されたゲームオブジェクトの三角形の数。 |
Verts | インスタンス化されたゲームオブジェクトの頂点数。 |
Used Textures | そのフレームで使用された テクスチャ 数と、そのテクスチャが使用したメモリ量。 |
RenderTextures RenderTextures Bytes |
そのフレームで使用された レンダーテクスチャ 数と、そのレンダーテクスチャが使用したメモリ量。 |
RenderTextures Switches | そのフレームで Unity が 1 つまたは複数のレンダーテクスチャをレンダーターゲットとして設定した回数。 |
Screen | The resolution of the screen and the amount of memory it used. |
VRAM Usage | How much video memory Unity allocated to render the frame. |
VBO Total | The number of compute buffers on the GPU. |
VB Uploads | The amount of geometry that the CPU uploaded to the GPU in a frame. This represents the vertex/normal/texcoord data. There might already be some geometry on the GPU. This statistic only includes geometry that Unity transfers in a frame. |
IB Uploads | The amount of geometry that the CPU uploaded to the GPU in a frame. This represents the triangle indices data. There might already be some geometry on the GPU. This statistic only includes geometry that Unity transfers in a frame. |
Shadow Casters | そのフレームで影を作るゲームオブジェクトの数。1 つのゲームオブジェクトが複数の影を作る場合 (複数のライトが照らしているため)、1 つの影につき 1 エントリーされます。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.