Search Issue Tracker
Fixed in 2017.2.0f3
Fixed in 5.6.X, 2017.1.X
Won't Fix in 5.5.X
Votes
1
Found in
5.5.1p4
Issue ID
892103
Regression
No
Time.realtimeSinceStartup does not advance when app is running in background
Steps to reproduce:
1. Open attached project ("892103 repro project.zip")
2. Build to iOS
3. Deploy to phone
4. Disconnect phone from computer
5. Open the deployed app
6. Press home button (to send the app to the background)
7. Wait for a few minutes (so the screen turns off)
8. Open the app to the foreground
Result: "Unity" timer count is smaller than "System" by the amount phone spent with screen turned off
Reproduced with: Unity 5.5.1p4, 5.5.2p2, 5.6.0f2, 2017.1.0a3
Reproduced on: iPad Mini 2 (iOS 9.2.1). Sony Xperia Z3 (Android 5.1.1)
Notes:
- Documents state: realtimeSinceStartup returns the time since startup, not affected by Time.timeScale. realtimeSinceStartup also keeps increasing while the player is paused (in the background).
- Issue does not reproduce if iOS device stays connected to Xcode
- Just leaving the app in background doesn't impair realtimeSinceStartup ticking, it happens after the screen times out.
Comments (3)
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Goa
Oct 21, 2018 06:54
Issue in 2018.2
uandm
Aug 06, 2018 04:11
Reopen in 2017.4.
hadesfury
May 09, 2018 07:19
It seems this issue is not fixed in 2017.4