mirror of https://github.com/Ryujinx/Ryujinx.git
Define MaxFramesPerCapture
This commit is contained in:
parent
f80b83a3e6
commit
b39bf5ca94
|
@ -13,6 +13,8 @@ namespace Ryujinx.Graphics.Metal
|
||||||
[SupportedOSPlatform("macos")]
|
[SupportedOSPlatform("macos")]
|
||||||
class Pipeline : IPipeline, IDisposable
|
class Pipeline : IPipeline, IDisposable
|
||||||
{
|
{
|
||||||
|
private const int MaxFramesPerCapture = 50;
|
||||||
|
|
||||||
private readonly MTLDevice _device;
|
private readonly MTLDevice _device;
|
||||||
private readonly MTLCommandQueue _mtlCommandQueue;
|
private readonly MTLCommandQueue _mtlCommandQueue;
|
||||||
private readonly HelperShaders _helperShaders;
|
private readonly HelperShaders _helperShaders;
|
||||||
|
@ -150,7 +152,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
{
|
{
|
||||||
_frameCount++;
|
_frameCount++;
|
||||||
|
|
||||||
if (_frameCount >= 5)
|
if (_frameCount >= MaxFramesPerCapture)
|
||||||
{
|
{
|
||||||
_captureEnded = true;
|
_captureEnded = true;
|
||||||
MTLCaptureManager.SharedCaptureManager().StopCapture();
|
MTLCaptureManager.SharedCaptureManager().StopCapture();
|
||||||
|
|
Loading…
Reference in New Issue