Search Issue Tracker
By Design
Votes
0
Found in
2021.3.43f1
2022.3.44f1
Issue ID
UUM-79111
Regression
No
[Linux][Wayland] Player elapsed time slows down when the windows is put to background
Reproduction steps:
1. Open the attached “BugReport” project
2. Click File > Build Settings…
3. Build the project
4. Launch the Player with ‘-force-wayland’ flag in a Wayland session
5. In Player, when the timer starts, put the Player window in the background of another application for 30 seconds
6. Put the Player window in the foreground and observe the elapsed time
Expected results: Elapsed time is correct
Actual results: Elapsed time is 3-4 times lower than the actual elapsed time
Reproduced with: 2021.3.43f1, 2022.3.44f1
Not reproduced with: 6000.0.17f1
Reproduced on: Ubuntu 22.04
Not reproduced on: No other environment tested, as this is a Linux-specific issue
-
Enzi
Aug 29, 2024 21:07
But "Run in background" exists. Many games rely on running in the background to either track time or keep a connection up.
https://docs.unity3d.com/ScriptReference/PlayerSettings-runInBackground.html
The same buggy behavior can't be reproduced in Windows, Mac or Linux/X11. In all cases, elapsed time will increase as expected.
So it can't be "functioning as designed" when it's not working just for a subset which is Linux/Wayland.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Animation Clip with Legacy enabled does not play when Time.timeScale is set to 0 despite Update mode set to "Unscaled time"
- Rename is enabled on subfolder empty space - "Can't rename to empty name" warning
- SamplerState Property Missing Anisotropic Filtering
- Visual glitches when using Handles API
- The RGBA color values are inconsistent when comparing two identical colors set in the Inspector
Resolution Note:
Thank you for reporting a bug to Unity.
We have reviewed the issue carefully, and in this case, the team is unable to prioritize fixing this bug as this is functioning as designed. Our user manual states that this value doesn't update when paused. Please review our manual for more context or other solutions. https://docs.unity3d.com/ScriptReference/Time-time.html
Today we will be closing this case. Thank you again for taking the time to report this issue, and please let us know if there is anything else that changes the impact or severity of this issue.