Add Ion Network Plugin design documentation (v1 & v2)#50
Draft
Add Ion Network Plugin design documentation (v1 & v2)#50
Conversation
Presents three approaches for Ion.Extensions.Network: 1. Replicated World (component-driven automatic sync) 2. Network Events (explicit message-passing) 3. Hybrid combining both All options use a transport abstraction (INetworkTransport) wrapping LiteNetLib, with architecture that enables future lag compensation and client-side prediction. https://claude.ai/code/session_016AjVXfrXScZ9H4PuZ5WXAt
Updates ion-network-plugin.md: - Chose Option 3 (Hybrid: replicated components + network events) - Raw blit serialization with INetworkSerializer interface - Automatic NetworkId assignment - Server-authoritative default with opt-in owner authority - Defined v1 vs v2 scope Adds ion-network-prediction-lagcomp.md covering v2 features: - Client-side prediction via PredictionInputBuffer - Server reconciliation with rollback + resimulate - Entity interpolation for remote entities - Server-side lag compensation with GetComponentAtTick / WithWorldAtTick - Middleware pipeline integration for client vs server roles - SnapshotRingBuffer as the shared foundation https://claude.ai/code/session_016AjVXfrXScZ9H4PuZ5WXAt
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Remove Option 1, Option 2, Option 3 framing and comparison matrix. Restructure as a single cohesive design document presenting the hybrid approach (replicated components + network events) with clear sections for each decision: serialization, identity, authority, middleware, and transport. Add cross-reference to the v2 prediction/lag-comp doc. https://claude.ai/code/session_016AjVXfrXScZ9H4PuZ5WXAt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive design documentation for the Ion Network Plugin, covering both the v1 foundation and v2 advanced features (client-side prediction, lag compensation, entity interpolation). The documentation establishes the architecture, abstractions, and integration patterns for networked gameplay in Ion.
Changes
ion-network-plugin.md: Core design document covering three architectural options (Replicated World, Network Events, Hybrid) with detailed comparison. Recommends Option 3 (Hybrid) combining automatic component replication with explicit network events. Includes decisions on serialization (raw blitting), network identity (automatic assignment), authority model (server-authoritative with opt-in owner authority), and v1 scope.
ion-network-prediction-lagcomp.md: Detailed v2 feature specification building on v1 foundation, covering:
PredictionInputBufferand[Predicted]attributeInterpolationBufferGetComponentAtTick()andWithWorldAtTick()for fair hit detectionKey Design Decisions
[Networked]component replication for continuous state + explicitINetworkEventBusfor discrete events (RPCs, commands, chat)record structconstraint for zero-allocation serialization viaMemoryMarshal.AsBytes()INetworkTransportinterface with LiteNetLib as v1 implementation, Steam Networking as future option[Init],[First],[FixedUpdate], and[Last]stagesNotable Details
https://claude.ai/code/session_016AjVXfrXScZ9H4PuZ5WXAt