瀏覽代碼

fixed long time for swapBuffers by turning off vsync

Alexander Hendrich 10 年之前
父節點
當前提交
baaacc1ef6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      bbiwarg/Graphics/OutputWindow.cs

+ 2 - 0
bbiwarg/Graphics/OutputWindow.cs

@@ -54,6 +54,8 @@ namespace bbiwarg.Graphics
                 Keyboard.KeyDown += HandleKeyDown;
                 Logger.log("video controls enabled (space=pause, right=nextFrame, left=previousFrame)", LogSubject.VideoControls);
             }
+
+            VSync = VSyncMode.Off;
         }
 
         protected override void OnResize(EventArgs e)