feat: moving sources to worker

This commit is contained in:
Chubby Granny Chaser
2025-10-18 14:07:44 +01:00
parent 393c55738c
commit c2273dbf71
6 changed files with 329 additions and 84 deletions

View File

@@ -17,6 +17,7 @@ import {
Lock,
DeckyPlugin,
ResourceCache,
GameMatcherWorkerManager,
} from "@main/services";
export const loadState = async () => {
@@ -25,6 +26,9 @@ export const loadState = async () => {
ResourceCache.initialize();
await ResourceCache.updateResourcesOnStartup();
// Initialize game matcher worker thread
GameMatcherWorkerManager.initialize();
const userPreferences = await db.get<string, UserPreferences | null>(
levelKeys.userPreferences,
{