From: thefiddler Date: Thu, 17 Jul 2014 09:59:38 +0000 (+0200) Subject: [KMS] VSync off causes a crash; force VSync on until fixed X-Git-Tag: 2.0-0~112^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=20747664f4fc493ff04e59da02087ecc9aa211d0;p=platform%2Fcore%2Fcsapi%2Fopentk.git [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. --- 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");