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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
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