FluidDataObject: Don't send state update and command as bundle

Makes reasoning about overall sequences hard if using server latency, 
produces 'late' messages otherwise: we just need guarantee of ordering, 
not simultaneity.
nix
Owen Green 5 years ago
parent 78cf7bb20d
commit d2b95f2134

@ -283,12 +283,12 @@ FluidModelObject : FluidDataObject
} }
prSendMsg {|msg| prSendMsg {|msg|
server !? { server.bind( //These need to happen sequentially, but not simultaneously
{ //sending as a bundle makes reasoning about timing w/r/t other
super.prSendMsg(this.prUpdateStateMsg); //commands more awkward, unless we set the offet to 0 (in which case,
super.prSendMsg(msg); //noisy 'late' messages)
}); super.prSendMsg(this.prUpdateStateMsg);
} super.prSendMsg(msg);
} }
} }

Loading…
Cancel
Save