소스 검색

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)