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
- Select Preset "None" icon changes after switching tabs
- [Android] Crash when using xxHash3 and targeting the ARMv7 Architecture with IL2CPP Scripting Backend
- GameObject reference in a Script Component becomes missing when unpacking a variant of another Prefab variant
- Project Settings vertical separator position is not synchronized with the mouse position when dragging it horizontally
- Crash on PhysicsDebugDraw::SelectFiltering::Update when entering play mode with Physics Debug window docked and unfocused
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