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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
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