lightyear icon indicating copy to clipboard operation
lightyear copied to clipboard

LeafwingInputMessages contains too many diffs

Open cBournhonesque opened this issue 1 year ago • 0 comments

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

cBournhonesque avatar Apr 29 '24 03:04 cBournhonesque