lightyear icon indicating copy to clipboard operation
lightyear copied to clipboard

Replication groups break with interest management

Open treytencarey opened this issue 4 months ago • 1 comments

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 a PlayerBundle with both group: ReplicationGroup::default() and relevance_mode: NetworkRelevanceMode::InterestManagement
  • I have a PlayerTextBundle with a PlayerParent mapped with MapEntities
  • In server.rs I have interest_management -- the players are initially added to room 0 and can see each other. Their room changes every 200px they move, and the server info logs which rooms they've moved to.
  • Notice that if you move to a new room and move back, replication no longer works.

treytencarey avatar Oct 04 '24 00:10 treytencarey