From b7199f4d9501f06d4348e230f7b38913dbb76267 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Mon, 1 Sep 2025 13:54:21 -0300 Subject: [PATCH] chore: bump version --- package.json | 2 +- src/main/constants.ts | 2 +- src/main/services/process-watcher.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b4ecc5bf..ed7e31e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hydralauncher", - "version": "3.6.3", + "version": "3.6.4", "description": "Hydra", "main": "./out/main/index.js", "author": "Los Broxas", diff --git a/src/main/constants.ts b/src/main/constants.ts index 16642d50..b067be80 100644 --- a/src/main/constants.ts +++ b/src/main/constants.ts @@ -41,4 +41,4 @@ export const appVersion = app.getVersion() + (isStaging ? "-staging" : ""); export const ASSETS_PATH = path.join(SystemPath.getPath("userData"), "Assets"); -export const MAIN_LOOP_INTERVAL = 1500; +export const MAIN_LOOP_INTERVAL = 2000; diff --git a/src/main/services/process-watcher.ts b/src/main/services/process-watcher.ts index eb9febe8..8c407ad5 100644 --- a/src/main/services/process-watcher.ts +++ b/src/main/services/process-watcher.ts @@ -9,6 +9,7 @@ import { CloudSync } from "./cloud-sync"; import { logger } from "./logger"; import path from "path"; import { AchievementWatcherManager } from "./achievements/achievement-watcher-manager"; +import { MAIN_LOOP_INTERVAL } from "@main/constants"; export const gamesPlaytime = new Map< string, @@ -25,7 +26,7 @@ interface GameExecutables { [key: string]: ExecutableInfo[]; } -const TICKS_TO_UPDATE_API = 120; +const TICKS_TO_UPDATE_API = (3 * 60 * 1000) / MAIN_LOOP_INTERVAL; // 3 minutes let currentTick = 1; const platform = process.platform;