Implement spatial ownership for substrate #119

Open
opened 2025-12-17 03:27:54 +00:00 by siennathesane · 0 comments
siennathesane commented 2025-12-17 03:27:54 +00:00 (Migrated from github.com)

Description

World divided into chunks, each owned by one peer.

Acceptance Criteria

Scenario: Spatial ownership works
  Given world is divided into chunks
  When substrate state changes
  Then owning peer updates chunk authoritatively
  And non-owners receive chunk state updates
  And chunk ownership is determined by player proximity
  And chunk ownership transfers smoothly

Technical Notes

  • Chunk size: 50m × 50m for balanced ownership
  • Chunk ownership: peer with closest player owns chunk
  • Substrate sync: chunk owner syncs substrate state (temperature, substances, contagion)
  • Border handling: chunks share border state with neighbors
  • Sync frequency: moderate (every 100ms for substrate)
  • Load balancing: ensure even chunk distribution

Size: S (2 points)
Priority: P1
Phase: 12 - Networking & Sync

## Description World divided into chunks, each owned by one peer. ## Acceptance Criteria ```gherkin Scenario: Spatial ownership works Given world is divided into chunks When substrate state changes Then owning peer updates chunk authoritatively And non-owners receive chunk state updates And chunk ownership is determined by player proximity And chunk ownership transfers smoothly ``` ## Technical Notes - Chunk size: 50m × 50m for balanced ownership - Chunk ownership: peer with closest player owns chunk - Substrate sync: chunk owner syncs substrate state (temperature, substances, contagion) - Border handling: chunks share border state with neighbors - Sync frequency: moderate (every 100ms for substrate) - Load balancing: ensure even chunk distribution **Size:** S (2 points) **Priority:** P1 **Phase:** 12 - Networking & Sync
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: studio/marathon#119