您可以在60fps你的遊戲運行,只要您運行的部署應用
芒果下面的代碼是從解禁:MSDN: Game at 60fps
遊戲計時器間隔運行在60Hz
timer.UpdateInterval = TimeSpan.FromTicks(166667);
創建事件處理程序
public Game1()
{
graphics = new GraphicsDeviceManager(this);
graphics.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs>(graphics_PreparingDeviceSettings);
// Frame rate is 60 fps
TargetElapsedTime = TimeSpan.FromTicks(166667);
}
T母雞執行處理程序
void graphics_PreparingDeviceSettings(object sender, PreparingDeviceSettingsEventArgs e)
{
e.GraphicsDeviceInformation.PresentationParameters.PresentationInterval = PresentInterval.One;
}
任何原因你問這個問題兩次,你得到的第一個答案是不好的? - > http://stackoverflow.com/questions/9687009/xna-performance-on-wp7 – 2012-03-16 14:22:10