Run in background

Supposedly this issue was fixed in 5.2.0:

But Im running 5.2.1p3, have “Run in Background” enabled and am still experiencing this when loading assets.

My tests (in both Firefox and Chrome).

Sample in-game loading bar takes about 20seconds when staying in same browser tab.
Same loading bar can take minutes if navigating away to other tabs.

I shudder to think what this is doing to the in-game experience with asset downloading.

Has anyone else experienced this?

I have seen something i cant explain: We have a looped camera animation that doesnt not seem to advance in time when the browser tab containing it isnt active & viewable. This was diagnosed by just swapping to another tab, waiting a moment, and returning the game tab to visibile - the camera hadnt moved at all.

Music & audio however, do continue to play. So… not sure what this means.

Ugh. So I created a repro case… just a simple timer that updates every second and sure enough, it doesnt seem to halt completely but definitely lags substantially when switching to a different tab/window.

:rage:

that would explain why our sessions dont expire. Interested to see what unity will say, but i expect it to be along the lines of “javascript updates are considerably slower for non foreground tabs”

We are currently looking at it. Chances are this is a regression.

See my comments on the tracker.

If you see something different please ping us a bug number here for the new case with a repro project.

Done. #740302.

Checking with your project it does tick slower. We’ll have a look but it might still be a browser limitation for JS on inactive tabs.