ARCHITECTURE DELTA · REVISION-PINNED INPUTS

See what changed
before you merge.

Game Loop Before ADR 0002 → Event-Driven Core After ADR 0002

14ADDED
8REMOVED
4CHANGED
+ ADD− DEL~ MOD↔ MOVE
Event-Driven Core After ADR 0002 An architecture diagram generated by Archify. pulse % N callbacks each pulse every pulse readiness whole-list loops main thread - all gameplay mutation Game Code · combat, magic, handler · main thread - all gameplay mutation Game Code combat, magic, handler heartbeat() · pulse % cadence checks · main thread - all gameplay mutation heartbeat() pulse % cadence checks Interpreter · commands run directly · main thread - all gameplay mutation Interpreter commands run directly game_loop() · select() poll + sleep · main thread - all gameplay mutation game_loop() select() poll + sleep Legacy Event Queue · event_process() · main thread - all gameplay mutation Legacy Event Queue event_process() World Scans · mobiles, zones, affects · main thread - all gameplay mutation World Scans mobiles, zones, affects Domain Event Bus · sealed typed facts · main thread - all gameplay mutation Domain Event Bus sealed typed facts Game Code · combat, magic, handler · main thread - all gameplay mutation Game Code combat, magic, handler Interpreter · commands run directly · main thread - all gameplay mutation Interpreter commands run directly Sockets + Pipes · clients, bridges, AI · Architecture component Sockets + Pipes clients, bridges, AI game_loop() · one pass per wakeup · main thread - all gameplay mutation game_loop() one pass per wakeup Owner Events · NPCs, periodic, affects · main thread - all gameplay mutation Owner Events NPCs, periodic, affects I/O Reactor · libevent or select() · main thread - all gameplay mutation I/O Reactor libevent or select() Game Scheduler · 5 x 64 timing wheel · main thread - all gameplay mutation Game Scheduler 5 x 64 timing wheel Runtime Services · named cadences · main thread - all gameplay mutation Runtime Services named cadences Fact Subscribers · quests, activities, NPCs · main thread - all gameplay mutation Fact Subscribers quests, activities, NPCs ACMD() committed facts due batch input lines cadence owner callbacks readiness behavior typed handlers wake owners wakeup main thread - all gameplay mutation Legend Frontend Backend Message bus External
Exact authored changes · 28