Simple Web Sockets for Unity WebGL - not working in background in WebGL build
This asset: https://www.assetstore.unity3d.com/en/#!/content/38367
Runs fine in background ( with Run in Background option enabled ) on the editor, and desktop builds, but in webgl if not focused, it stops receiving messages...
Please help, I need this to be working for my project.
Thanks
Answer by Schubkraft · Mar 15, 2016 at 10:19 AM
Inactive tabs tick very slowly due to browser limitations. See http://docs.unity3d.com/Manual/webgl-performance.html
I created a script with an animation on the same project, of a sphere moving around a point to test performance on background and it worked perfectly
Hi. Did you find any solution? I have the same WebGL Background issue. I need 50 updates(fixedupdate) in 1 second. But it only updates 1 time (1 fps) in a second. This results as packet loss. (Also this info may be useful: How did you manage the sphere moving at full performance? It just worked or any workarounds done?) Note: While they may say it's a browser limitation, there are games that works flawless at background. You can check haxball for example.
Answer by zeroisthenew1 · Nov 23, 2019 at 12:26 AM
Hi. Did you find any solution? I have the same WebGL Background issue. I need 50 updates(fixedupdate) in 1 second. But it only updates 1 time (1 fps) in a second. This results as packet loss. (Also this info may be useful: How did you manage the sphere moving at full performance? It just worked or any workarounds done?) Note: While they may say it's a browser limitation, there are games that works flawless at background. You can check haxball for example.
Your answer
Follow this Question
Related Questions
WebGL/WebSocket has stopped while processing WWW.LoadFromCacheOrDownload 0 Answers
How can I receive UDP messages or similar in WebGL? 0 Answers
WebGL with SocketIO throws errors 1 Answer
Why does my toon shader not work when I build it in webgl? 0 Answers
How to capture Camera disconnect in using Webcamtexture for Webgl 1 Answer