GPU Usage Profiler 显示游戏中的 GPU 时间使用情况。选择此性能分析器后,下方面板将显示所选帧的层级时间数据。从层级视图中选择一项即可在右侧面板中查看贡献的细分情况。请参阅有关 Profiler 窗口的文档以了解关于性能分析器的更多信息。
Note that GPU profiling is disabled when Graphics Jobs is enabled in the Player settings. See documentation on Standalone Player settings for more information. On macOS, GPU profiling is only available under OSX 10.9 Mavericks and later versions.
平台 | 图形 API | 状态 |
---|---|---|
Windows | D3D9, D3D11, D3D12, OpenGL core, OpenGL ES 2.0, OpenGL ES 3.x | 受支持。 |
Vulkan | 不可用。 | |
Mac OS X | OpenGL Core | 受支持。 |
Metal | 不可用。改用 XCode 的 GPU 帧调试器 UI。 | |
Linux | OpenGL Core | 受支持。 |
Vulkan | 不可用。 | |
PlayStation 4 | libgnm | 受支持(另一种选择是 Razor)。 |
Xbox One | D3D11 | 受支持(另一种选择是 PIX)。 |
WebGL | WebGL 1.0 和 WebGL 2.0 | 不可用。 |
Android | OpenGL ES 2.0、OpenGL ES 3.x | 仅在运行 NVIDIA 或 Intel GPU 的设备上受支持。 |
Vulkan | 不可用。 | |
iOS、tvOS | Metal、OpenGL ES 2.0、OpenGL ES 3.0 | 不可用。改用 XCode 的 GPU 帧调试器 UI。 |
Tizen | OpenGL ES 2.0 | 不可用。 |
Editor 仅支持在装有 Direct3D 9 和 Direct3D 11 API 的 Windows 上进行性能分析。此做法有利有弊:便于快速分析,因为意味着不需要构建播放器;但是,性能分析器受运行 Unity Editor 的开销所影响,可能会使性能分析结果不够准确。
2017–11–21 页面已发布
删除了三星电视支持。
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.