sincekit / docs /fit.md
pgg-engineering's picture
Release SinceKit 0.1.0 with native benchmarks and trace replay
ef8334d verified
|
Raw History Blame Contribute Delete
2.54 kB
# Choosing a state synchronization primitive
A world server has changed entity payloads, several subscribers have fallen behind, and each subscriber can acknowledge a different revision. SinceKit targets the CPU work of discovering the latest dirty keys and preparing those different replies. It works best when the readers can see the same keys and there is overlap between their required updates.
| Requirement | Starting point |
|---|---|
| One authoritative dense slot space, heterogeneous lag, coalesced updates and tombstones | SinceKit. Measure the shared-plan and per-reader paths with your cursor distribution. |
| Every transaction or tool action must be retained, ordered and recoverable | An append-only durable log. A coalescing index discards intermediate writes. |
| Durable document changes with resumable database feeds | CouchDB's changes API has related latest-document semantics and handles storage and HTTP. |
| Schema-rich multiplayer rooms, per-client visibility or end-to-end replication | Colyseus, Unreal Replication Graph or an existing engine's replication facilities. They handle much more of the transport and relevance problem. |
| A query spanning ECS archetypes or tables where a coarser change bit suffices | Flecs has table-level change detection. Bevy provides per-component change filters. |
| Independent concurrent writers that must reconcile partitioned state | A replicated data type such as Yjs, or application-specific reconciliation. |
| Mostly sequential writes and short reader windows with few repeated keys | Test a bounded revision journal first. The native comparison includes one. |
Epic documents a real per-actor/per-client CPU bottleneck in large worlds. Colyseus already shares encoding across clients with a common view. CouchDB documents latest-change semantics. These precedents motivate the contract and constrain any novelty claim.
* [EasyEcs demonstrates per-client acknowledged ticks for dirty replication](https://ecs.xgamedev.net/en/docs/guide/change-tracking)
* [Epic Replication Graph](https://dev.epicgames.com/documentation/unreal-engine/replication-graph-in-unreal-engine)
* [Colyseus state optimization](https://docs.colyseus.io/state/optimization)
* [CouchDB changes feed](https://docs.couchdb.org/en/stable/api/database/changes.html)
* [Flecs change detection](https://www.flecs.dev/flecs/Queries.html)
* [Bevy query performance](https://docs.rs/bevy/latest/bevy/ecs/prelude/struct.Query.html)
* [Yjs state-vector updates](https://docs.yjs.dev/api/document-updates)