From 0233a0d35a71ed58e6c332ab9984121c3f45f963 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Thu, 3 Aug 2023 16:53:53 -0400 Subject: [PATCH] Define MaxFramesPerCapture --- src/Ryujinx.Graphics.Metal/Pipeline.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Metal/Pipeline.cs b/src/Ryujinx.Graphics.Metal/Pipeline.cs index 47426486b..77594c142 100644 --- a/src/Ryujinx.Graphics.Metal/Pipeline.cs +++ b/src/Ryujinx.Graphics.Metal/Pipeline.cs @@ -13,6 +13,8 @@ namespace Ryujinx.Graphics.Metal [SupportedOSPlatform("macos")] class Pipeline : IPipeline, IDisposable { + private const int MaxFramesPerCapture = 50; + private readonly MTLDevice _device; private readonly MTLCommandQueue _mtlCommandQueue; private readonly HelperShaders _helperShaders; @@ -150,7 +152,7 @@ namespace Ryujinx.Graphics.Metal { _frameCount++; - if (_frameCount >= 5) + if (_frameCount >= MaxFramesPerCapture) { _captureEnded = true; MTLCaptureManager.SharedCaptureManager().StopCapture();