mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-21 09:45:48 +08:00
fix _frameTimer not start
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user