Wake deadline consumers on enqueue instead of polling every second

This commit is contained in:
woggioni committed 2026-09-29 23:39:42 +00:00
1 parent e344ce2e30
commit b43e074728
7 files changed
+162 -19

No files matched your search

@@ -220,6 +220,7 @@ class DummyEngine(GameEngine):
def make_platform(
engines: Sequence[GameEngine] = (DummyEngine(),),
heartbeat_ms: int = 50,
) -> Tuple[KayaApp, Platform, TortoiseMixin]:
"""Build a throwaway app + platform wired with in-memory stores."""
registry = GameRegistry(engines)
@@ -251,7 +252,7 @@ def make_platform(
scheduler = DeadlineScheduler(
game_store,
registry,
heartbeat_ms=50,
heartbeat_ms=heartbeat_ms,
context_binder=tortoise_mixin.ensure_context,
)
platform = Platform(