From b0ec7eadd69dbab95b45543ae1470c8579121b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89=E9=B8=AD=E8=9B=8B?= Date: Thu, 3 Apr 2025 02:06:13 +0800 Subject: [PATCH] fix _frameTimer not start --- Fischless.GameCapture/Graphics/GraphicsCapture.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Fischless.GameCapture/Graphics/GraphicsCapture.cs b/Fischless.GameCapture/Graphics/GraphicsCapture.cs index 10c5f8c1..a0c3c982 100644 --- a/Fischless.GameCapture/Graphics/GraphicsCapture.cs +++ b/Fischless.GameCapture/Graphics/GraphicsCapture.cs @@ -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; }