每次我使用集成显卡运行游戏时,它都能以 60 FPS 的速度运行。但有时当屏幕上有很多粒子时,它会滞后太多。
所以我切换到 Nvidia GeForce 640M,但帧率保持在 30 而不是 60。我尝试了 Reach 和 HiDef,但它们都无法解决帧率问题。我也试过
this.TargetElapsedTime = TimeSpan.FromMilliseconds(15);
但FPS仍然是30。
也试过这个但没有奏效:
public Game1()
{
graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
graphics.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs>(graphics_PreparingDeviceSettings);
}
private void graphics_PreparingDeviceSettings(object sender, PreparingDeviceSettingsEventArgs e)
{
e.GraphicsDeviceInformation.PresentationParameters.MultiSampleCount = 4;
e.GraphicsDeviceInformation.PresentationParameters.PresentationInterval = PresentInterval.One;
}
我该怎么做才能修复 Nvidia 显卡的帧率?