我只想确保我获得此游戏窗口的正确帧速率
这是我的代码:
int fpsCounter = 0;
private void Window_RenderFrame(object sender, FrameEventArgs e)
{
fpsCounter++;
if (fpsCounter == 60)
{
System.Console.WriteLine(this.RenderFrequency);
fpsCounter = 0;
}
this.SwapBuffers();
}