Unity优化翻译官方文档(十一) ------ GPU Profiler

    官方网址 : https://docs.unity3d.com/Manual/ProfilerGPU.html


Unity优化翻译官方文档(十一) ------ GPU Profiler

GPU使用分析器显示了GPU在你的游戏中花费的时间。当您选择这个剖析器时,下窗格将显示所选帧的分层时间数据。从层次结构中选择一个项目,以查看右侧面板中贡献的分解。请参阅剖析器窗口中的文档,以了解分析器中的信息。

注意,当Graphics Jobs (Experimental)在播放器设置中启用时,GPU分析是禁用的。有关更多信息,请参阅有关独立播放器设置的文档。在macOS上,GPU分析只能在OSX 10.9 Mavericks和后续版本中使用。

Remote profiling support

Platform Graphics API Status
Windows D3D9, D3D11, D3D12, OpenGL core
, OpenGL ES 2.0, OpenGL ES 3.x, Vulkan
Supported.
Mac OS X OpenGL core Supported.
  Metal Not available. Use XCode’s GPU Frame Debugger UI
 instead.
Linux OpenGL core, Vulkan Supported.
PlayStation 4 libgnm Supported (an alternative is Razor).
Xbox One D3D11 Supported (an alternative is PIX).
WebGL WebGL 1.0 and WebGL 2.0 Not available.
Android OpenGL ES 2.0, OpenGL ES 3.x Supported only on devices running NVIDIA or Intel GPUs.
  Vulkan Supported
iOS
, tvOS
Metal, OpenGL ES 2.0, OpenGL ES 3.0 Not available. Use XCode’s GPU Frame Debugger UI instead.
Tizen OpenGL ES 2.0 Not available.

在Unity编辑器中进行剖析

编辑器只支持Direct3D 9和Direct3D 11 api在Windows上进行剖析。这有优点也有缺点:它便于快速分析,因为这意味着您不需要构建播放器;然而,剖析器会受到运行Unity编辑器的开销的影响,这会使分析结果不那么准确。