Minimize / loss of focus causing loss of packets issue

Hello,

I’m creating a real-time multiplayer game in Unity using Nakama.

I’ve noticed when I either minimize the client window or click away and lose focus for a few seconds (application still running in background) my game loses packets.

Any advice on the subject, or is it something that someone else has faced / resolved before?

Thanks in advance.

Hi @Roiku,

I have tested this locally with the Run In Background option checked and two connected players firing match state updates every frame with no packet loss regardless of clients being in the background or fully minimized.

With that option unchecked I do occasionally get packet loss.
Please can you confirm this option is checked in the Project Settings?

Also, if you are able to share some of your code relating to sending and receiving the packets that would be useful to help us diagnose the issue further.

1 Like