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.
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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
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