rebase, and move swap check to flinger
This commit is contained in:
parent
a80300e7db
commit
da2caa929f
2 changed files with 4 additions and 5 deletions
|
@ -150,11 +150,12 @@ namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
|
|||
|
||||
if (context.Device.EnableDeviceVsync)
|
||||
{
|
||||
context.Device.VsyncEvent.WaitOne();
|
||||
for (int i = 0; i < queueBufferObject.SwapInterval; i++)
|
||||
{
|
||||
context.Device.VsyncEvent.WaitOne();
|
||||
}
|
||||
}
|
||||
|
||||
context.Device.NextSwapInterval = queueBufferObject.SwapInterval;
|
||||
|
||||
return MakeReplyParcel(context, 1280, 720, 0, 0, 0);
|
||||
}
|
||||
|
||||
|
|
|
@ -34,8 +34,6 @@ namespace Ryujinx.HLE
|
|||
|
||||
public AutoResetEvent VsyncEvent { get; private set; }
|
||||
|
||||
public int NextSwapInterval { get; set; }
|
||||
|
||||
public event EventHandler Finish;
|
||||
|
||||
public Switch(VirtualFileSystem fileSystem, ContentManager contentManager, IRenderer renderer, IAalOutput audioOut)
|
||||
|
|
Loading…
Add table
Reference in a new issue