由于 Windows 应用商店应用程序可以在 Intel 和 ARM 架构上运行,因此动画(至少)尽可能高性能是很重要的。要测试动画,FPS 非常重要。如何在 Windows 中启用 FPS 监控?
问问题
2543 次
1 回答
6
在 Windows 8 中,您可以这样做:
App.Current.DebugSettings.EnableFrameRateCounter = true;
我喜欢这样做:
App.Current.DebugSettings.EnableFrameRateCounter
= System.Diagnostics.Debugger.IsAttached;
此处记录了计数器 UI ( http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.debugsettings.enableframeratecounter.aspx )。
监视器包括:
- Cp fps:合成线程的每秒帧数
- UI fps:UI 线程的每秒帧数
- 内存:纹理的内存利用率
- 批处理:发送到图形处理单元 (GPU) 的表面计数
- Cp cpu:在组合线程的处理器上花费的时间(以毫秒为单位)
- UI cpu:在 UI 线程的处理器上花费的时间(以毫秒为单位)
于 2013-02-21T07:44:26.817 回答