Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[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.
  • Loading branch information...
commit 20747664f4fc493ff04e59da02087ecc9aa211d0 1 parent 4f037c8
@thefiddler thefiddler authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs
6 Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs
@@ -72,7 +72,11 @@ public override void SwapBuffers()
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");
Please sign in to comment.
Something went wrong with that request. Please try again.