Permalink
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...
thefiddler committed Jul 17, 2014
1 parent 4f037c8 commit 20747664f4fc493ff04e59da02087ecc9aa211d0
Showing with 5 additions and 1 deletion.
  1. +5 −1 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");

0 comments on commit 2074766

Please sign in to comment.