Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
Increase minimum thread count. With RYD now prefetching, spoof client…
Browse files Browse the repository at this point in the history
… enabled, and SponsorBlock enabled, the client will always run 3 background thread tasks on each video loads.
  • Loading branch information
LisoUseInAIKyrios committed Nov 17, 2023
1 parent ea46a07 commit e1259d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static void hideViewUnderCondition(SettingsEnum condition, View view) {
* All tasks run at max thread priority.
*/
private static final ThreadPoolExecutor backgroundThreadPool = new ThreadPoolExecutor(
2, // 2 threads always ready to go
3, // 3 threads always ready to go
Integer.MAX_VALUE,
10, // For any threads over the minimum, keep them alive 10 seconds after they go idle
TimeUnit.SECONDS,
Expand Down

0 comments on commit e1259d4

Please sign in to comment.