浏览代码

don't call glFinish ! will stall cpu instead of using double buffering

Nicolas Cannasse 8 年之前
父节点
当前提交
53bbb47a14
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      libs/sdl/sdl/Window.hx

+ 0 - 1
libs/sdl/sdl/Window.hx

@@ -69,7 +69,6 @@ class Window {
 			var spent = haxe.Timer.stamp() - lastFrame;
 			if( spent < 0.005 ) Sys.sleep(0.005 - spent);
 		}
-		GL.finish();
 		winSwapWindow(win);
 		lastFrame = haxe.Timer.stamp();
 	}