There's can happen losing data?

Options
almost at time, all Message with opRaseEvent, working well
but sometimes, some event message are gone somewhere for some player in room.
the weird point is when messages are gone, not all player losing that message.
only one or two players of whole players in room can't receive message correctly.
is this may my logical problem? or it can happen sometimes?

Comments

  • Kaiserludi
    Options
    Hi PaperCore.

    If you are using UDP as connection protocol setting (the default) and pass 'false' for the reliability flag to opRaiseEvent(), then this is indeed intended behavior. Internet connections, especially mobile ones, are sometimes unstable and UDP packets may simply get lost. Unlike TCP, UDP does not resend any lost data for optimum performance reasons (it assumes that you may already sent more up to date values shortly after and that repeating the lost packets would only mean resending outdated data and this way potentially slowing down the sending of up to data data). Photon will itself repeat messages that get lost, when you set the reliability flag to true, so that when using UDP you can decide on a per message basis, if you want Photon to repeat a certain message in case it gets lost or if you do not want that.
  • PaperCore
    Options
    it was very detailed answer. Thank you