5
由于Windows Store应用程序可以跨英特尔和ARM体系结构运行,因此重要的是动画(至少)尽可能保持高性能。为了测试动画,FPS非常重要。你如何在Windows中启用FPS监控?如何为测试XAML动画启用FPS监控?
由于Windows Store应用程序可以跨英特尔和ARM体系结构运行,因此重要的是动画(至少)尽可能保持高性能。为了测试动画,FPS非常重要。你如何在Windows中启用FPS监控?如何为测试XAML动画启用FPS监控?
在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)记录。
监视器包括: