Is this normal that some SetUserVariablesRequest are dropped via a USER_VARIABLES_UPDATE event?
Currently, I'm only testing with one connected player and I send user variables update every frame but sometime I do not receive the update every frame nor do I receive the correct information in the missing event.
For example In the attachment image, I do not receive the values of user variables for the frame 792.
Is this expected behavior? How can I know that some event are dropped?
The code that created and send the request for the user variables (>> log)
Code: Select all
private void Update()
{
//...
_connection.SmartFox.Send(new SetUserVariablesRequest(_userVariables));
Debug.Log($">> [{Time.frameCount}] {Time.realtimeSinceStartup} " + string.Join(", ", _userVariables));
_connection.SmartFox.ProcessEvents();
}
The code that receive the user variable update. (<< log)
Code: Select all
public void OnUserVariableUpdate(Sfs2X.Core.BaseEvent evt)
{
Debug.Log($"<< [{Time.frameCount}:{Time.realtimeSinceStartup}] {evt.Dump()}");
// ...
}