fix(game-engine): 밀린 턴을 월 경계별로 처리
실시간 게임 시계가 여러 달 앞선 경우 장수 턴을 현재 월 경계까지만 실행해 월 표시와 상태 전이 순서를 보존한다. 턴 데몬 전용 NODE_OPTIONS도 지원해 다른 런타임 프로세스와 heap 상한을 분리한다.
This commit is contained in:
@@ -393,6 +393,7 @@ export const buildProcessDefinitions = (
|
||||
const daemonCwd = path.join(runtimeWorkspace, 'app', 'game-engine');
|
||||
const apiScript = path.join(apiCwd, 'dist', 'index.js');
|
||||
const daemonScript = path.join(daemonCwd, 'dist', 'index.js');
|
||||
const turnDaemonNodeOptions = baseEnv.TURN_DAEMON_NODE_OPTIONS?.trim();
|
||||
const apiEnv = {
|
||||
...baseEnv,
|
||||
GAME_API_ROLE: 'server',
|
||||
@@ -409,6 +410,7 @@ export const buildProcessDefinitions = (
|
||||
};
|
||||
const daemonEnv = {
|
||||
...baseEnv,
|
||||
...(turnDaemonNodeOptions ? { NODE_OPTIONS: turnDaemonNodeOptions } : {}),
|
||||
GAME_ENGINE_ROLE: 'turn-daemon',
|
||||
TURN_PROFILE: profile.profile,
|
||||
PROFILE: profile.profile,
|
||||
|
||||
Reference in New Issue
Block a user