Define MaxFramesPerCapture

This commit is contained in:
Isaac Marovitz 2023-08-03 16:53:53 -04:00
parent f80b83a3e6
commit b39bf5ca94
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 3 additions and 1 deletions

View File

@ -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();