lightyear
lightyear copied to clipboard
Replication groups break with interest management
I am trying to use replication groups alongside interest management, but leaving a room and re-entering the same room breaks replication.
Here's a sample project: https://github.com/treytencarey/placeholder_interest_group_management
- In
protocol.rs
I have aPlayerBundle
with bothgroup: ReplicationGroup::default()
andrelevance_mode: NetworkRelevanceMode::InterestManagement
- I have a PlayerTextBundle with a
PlayerParent
mapped withMapEntities
- In
server.rs
I haveinterest_management
-- the players are initially added to room 0 and can see each other. Their room changes every 200px they move, and the serverinfo
logs which rooms they've moved to. - Notice that if you move to a new room and move back, replication no longer works.