From 20747664f4fc493ff04e59da02087ecc9aa211d0 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Thu, 17 Jul 2014 11:59:38 +0200 Subject: [PATCH] [KMS] VSync off causes a crash; force VSync on until fixed VSync off leads to buffer starvation and a crash in Egl.SwapBuffers. We need to understand why and fix that before we can disable vsync. --- Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs b/Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs index 63122f7..f2d5518 100644 --- a/Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs +++ b/Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs @@ -72,7 +72,11 @@ namespace OpenTK.Platform.Linux if (is_flip_queued) { - WaitFlip(SwapInterval > 0); + // Todo: if we don't wait for the page flip, + // we drop all rendering buffers and get a crash + // in Egl.SwapBuffers(). We need to fix that + // before we can disable vsync. + WaitFlip(true); // WaitFlip(SwapInterval > 0) if (is_flip_queued) { Debug.Print("[KMS] Dropping frame"); -- 2.7.4