lightyear
lightyear copied to clipboard
LeafwingInputMessages contains too many diffs
Example:
2024-04-29T03:04:07.545356Z ERROR lightyear::server::input_leafwing: update action diff buffer for PREPREDICTED using input message entity=4v1 diffs=[[], [Pressed { action: Shoot }], [Released { action: Shoot }], [Released { action: Shoot }], [Released { action: Shoot }], [Released { action: Shoot }], [Released { action: Shoot }], [Released { action: Shoot }], [Released { action: Shoot }], []] end_tick=Tick(1000)
Normally the Released diff should be present in only one of the ticks, not all of them.
Is there an issue in how the diffs are generated?
EDIT: it's related to when an action is 'consumed'; while the action is consumed, we send a 'Released' diff