Strange behavior when minmizing, video attached.

Options
I've created a player object in resources.
Player has Photon View, Photon transform view.
If i load up 2 clients side by side the movement is synced perfect.
but when one is minimised it starts crawling, or the syncing is choppy. I'm not quite sure what would be causing it.
The movement code itself is pretty simple heres a slightly trimmed down version of how it functions: This is then juts ran in the update().
https://pastebin.com/hGMgnhjr

Video: https://drive.google.com/file/d/1l2UHBNx8LFAhPBB_1bL63xwknGAwhGCp/view?usp=sharing

Comments

  • Tobias
    Options
    On PC, clients in background should be able to continue their work.
    You might want to check if you set "Run in Background", a Unity feature. We expose that in the PhotonServerSettings file / inspector.
  • antisherenow
    Options
    Thank you, Though yes this is on.
    I even set it up to check constantly when running that its on and if its off turn it on :/ No luck.
  • Tobias
    Options
    Is there any code reacting to going to background and Unity's OnApplicationPause(bool)?
    Is the Update loop running as fast as when in focus?
    Is this on Windows or Mac? Could be that MacOS limits network access for apps in the background?