Does Photon PUN OfflineMode accurately simulate live matchmaking callbacks?
19K reputation · 25 May 2023, 05:22 UTC
Goal: determine whether enabling PhotonNetwork.OfflineMode in PUN reproduces the exact callback sequence and state changes that occur during a real connection to the Photon Cloud, allowing unit tests to run without credentials or network traffic.
Constraints: the test must avoid any production AppId, must not generate external traffic, and must remain deterministic across runs; uncertainty remains about how OfflineMode handles region selection, room‑creation callbacks, and event ordering compared to a live session.
Does OfflineMode trigger the same OnCreatedRoom and OnJoinedRoom callbacks as a live connection? Does it respect the same region‑selection logic? Are there any differences in event ordering or latency simulation?