textual-engine icon indicating copy to clipboard operation
textual-engine copied to clipboard

only emit state-room events when a room has changed

Open ssube opened this issue 4 years ago • 0 comments
trafficstars

Reduce the number of state-room events sent each step by:

  • queuing events for the same room and issuing them once (at the end of the step, not debounced)
  • only emitting events when a room has actual changes:
    • add/remove actor
    • add/remove item
    • change stats

ssube avatar May 29 '21 04:05 ssube