Explorar o código

fixed long time for swapBuffers by turning off vsync

Alexander Hendrich %!s(int64=10) %!d(string=hai) anos
pai
achega
baaacc1ef6
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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)