Video Profiler 模块显示有关应用程序中的视频所用资源的信息,例如内存、缓冲和视频剪辑的数量。借助这些信息可以确定应用程序在所选平台上播放和缓冲视频的效率。还可以使用 CPU Usage Profiler 模块来评估 Unity 在视频的哪些方面花费了时间。有关更多信息,请参阅 CPU Usage Profiler 模块文档。
Video Profiler 模块的图表被分为四个类别。要更改图表中类别的顺序,可以在图表的图例中拖放这些类别。还可以单击某个类别的有色图例以切换是否显示。有关如何使用 Profiler 窗口的更多信息,请参阅 Profiler 窗口入门相关文档。
图表 | 描述 |
---|---|
Total Video Sources | 场景中视频源的总数。 |
Playing Video Sources | 场景中正在播放的视频源数量。 |
Pre-buffered frames | 预缓冲帧的总数。 |
Total Video Memory | 应用程序中的视频所使用的系统内存量。 |
在 Video Profiler 模块中选择帧后,Profiler 窗口底部的模块详细信息面板会显示有关场景中视频播放的更多详细信息。显示的信息如下:
详细信息 | 描述 |
---|---|
Total Video Sources | 场景中视频源的数量。 |
Playing Video Sources | 场景中正在播放的视频源数量。 |
Paused Video Sources | 暂停的视频源的数量。 |
Software Video Playback | 平台本身不支持播放的视频的数量。 |
Pre-buffered frames | 预缓冲帧的总数。 |
Pre-buffered frame limit | 预缓冲帧限制。Unity 最多可为每个剪辑缓冲 16 帧。 |
Total frames dropped | 为了保持实时性,Unity 必须跳过的帧数。应用程序运行缓慢且无法足够快地生成帧来实时播放时,就可能会发生这种跳帧的情况。 |
Video Clip Count | 场景中视频剪辑的数量。 |
Total Video Memory | 应用程序中的视频所使用的系统内存量。 |
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.