Skip to content

[Engine] SystemScheduler phase 기반 시스템 실행 루프 구현#91

Merged
learncold merged 5 commits into
mainfrom
feat/issue-47
Apr 7, 2026
Merged

[Engine] SystemScheduler phase 기반 시스템 실행 루프 구현#91
learncold merged 5 commits into
mainfrom
feat/issue-47

Conversation

@SilverSupplier
Copy link
Copy Markdown
Collaborator

Summary

  • UpdatePhase 열거형 선언: Startup, PreSimulation, FixedSimulation, PostSimulation, RenderSync
  • TriggerPolicy 열거형 선언: EveryFrame, FixedStep, Interval
  • SystemDescriptor 구조체: phase, order, triggerPolicy 필드
  • SystemScheduler 구현: phase/order 정렬 삽입(registerSystem), 전체 시스템 configure, phase 경계 CommandBuffer::flush 포함 실행(executePhase)
  • EngineRuntime: systems_ 벡터를 SystemScheduler로 교체, addSystem에 기본값 FixedSimulation descriptor 추가로 기존 테스트 호환 유지
  • SystemSchedulerTests 추가: phase 순서, order 정렬, phase 격리, flush 반영 검증 (4개)

Related Issue

Area

  • Engine
  • Domain
  • Application
  • Docs
  • Build
  • Analysis
  • Chore

Architecture Check

  • I kept the dependency direction application -> domain -> engine.
  • I did not add Qt UI code to src/domain.
  • I did not add domain or application dependencies to src/engine.
  • I used src/ as the include root.

Verification

  • cmake --preset windows-debug-no-app
  • cmake --build --preset build-no-app-debug
  • ctest --preset test-no-app-debug

windows-debug-no-app / build-no-app-debug / test-no-app-debug preset 기준 실행 — configure, build, test(1/1) 모두 통과.

Risks / Follow-up

  • before/after 의존성 제약(위상 정렬)은 미구현 — 필요 시 별도 이슈로 확장 가능
  • TriggerPolicy::Interval 정책 완전 구현 미완 — 현재는 열거형만 선언
  • PR base를 feat/issue-12로 설정 — Task-Implement EngineRuntime minimal orchestration API #12 머지 후 main으로 리베이스 필요

- EngineWorld에 WorldQuery/WorldCommands 노출 추가
- EngineRuntime에 EcsCore, CommandBuffer, systems_ 소유권 추가
- addSystem, initialize, stepFrame 고정 스텝 루프 및 CommandBuffer flush 구현
- EngineRuntimeTests: 시스템 update 호출 및 CommandBuffer flush 검증 테스트 추가
- UpdatePhase, TriggerPolicy, SystemDescriptor 선언
- SystemScheduler: registerSystem(phase/order 정렬), configure, executePhase(phase 경계 flush) 구현
- EngineRuntime: systems_ 벡터를 SystemScheduler로 교체, addSystem에 descriptor 기본값 추가
- SystemSchedulerTests: phase 순서, order 정렬, phase 격리, flush 검증 (4개)
@learncold learncold deleted the branch main April 7, 2026 16:20
@learncold learncold closed this Apr 7, 2026
@learncold learncold reopened this Apr 7, 2026
@learncold learncold changed the base branch from feat/issue-12 to main April 7, 2026 16:36
@learncold learncold merged commit 1362273 into main Apr 7, 2026
2 checks passed
@learncold learncold deleted the feat/issue-47 branch April 7, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task-Implement SystemScheduler phase ordering and execution loop

2 participants