Skip to content

Commit

Permalink
Performance Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Apr 20, 2024
1 parent 8797f0a commit 96b275a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Project/Sucrose.Backgroundog/Helper/Initialize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ private async void InitializeTimer_Callback(object State)
await SBHA.Start();
}

await Task.Delay(SBMI.SpecificationMaxTime);

SBMI.Processing = true;
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/Project/Sucrose.Backgroundog/Manage/Internal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ internal static class Internal

public static int SpecificationTime = InitializeTime * 20;

public static int SpecificationMaxTime = InitializeTime * 30;

public static int SpecificationLessTime = InitializeTime * 10;

public static NowPlayingSessionManager SessionManager = null;
Expand Down

0 comments on commit 96b275a

Please sign in to comment.