mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 11:05:40 +00:00
[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.
This commit is contained in:
parent
4f037c882a
commit
20747664f4
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue