fix _frameTimer not start

This commit is contained in:
辉鸭蛋
2025-04-03 02:06:13 +08:00
parent 8951cc1adc
commit b0ec7eadd6

View File

@@ -43,7 +43,7 @@ public class GraphicsCapture : IGameCapture
private long _lastFrameTime = 0;
private Stopwatch _frameTimer = new Stopwatch();
private readonly Stopwatch _frameTimer = new Stopwatch();
public void Dispose() => Stop();
@@ -94,6 +94,7 @@ public class GraphicsCapture : IGameCapture
_captureSession.IsBorderRequired = false;
}
_frameTimer.Start();
_captureSession.StartCapture();
IsCapturing = true;
}