Search Issue Tracker

Fixed in Unity 2018.2

Votes

53

Found in

5.6.1f1

Issue ID

912848

Regression

No

[Android] Input.gyro is extremely laggy on specific device with Android 7.0

Mobile

-

-

Priority: 3Not yet prioritized for a release

-

Severity: 2Core functionality majorly impacted

Steps to reproduce:

1) Download attached project 'AndroidAttitudeBug.zip' and open in Unity
2) Build and Run 'Main' scene on a device
3) Rotate device
You will see that Input.gyro.attitude and Input.gyro.userAcceleration appear to be lagging

Expected result: Input.gyro.attitude and Input.gyro.userAcceleration should not be lagging (check attached video 'expected.mp4')
Actual result: Input.gyro.attitude and Input.gyro.userAcceleration appear to be lagging (check attached video 'bug.mp4')

Reproduced with:
5.5.3p4, 5.6.1p1, 2017.1.0b6

Device under test:

Reproduced with:
Samsung SM G925F (Galaxy S6 Edge)*, OS:7.0, CPU:arm64-v8a, GPU:Mali-T760, Build:samsung/zeroltexx/zerolte:6.0.1/MMB29K/G925FXXU5DQA7:user/release-keys
Pixel 2

Not reproduced with:

Samsung SM G928F*, OS:7.0, CPU:arm64-v8a, GPU:Mali-T760, Build:samsung/zenltexx/zenlte:6.0.1/MMB29K/G928FXXS3BPIA:user/release-keys

Xiaomi Mi 4i*, OS:5.0.2, CPU:arm64-v8a, GPU:Adreno (TM) 405, Build:Xiaomi/ferrari/ferrari:5.0.2/LRX22G/V8.1.5.0.LXIMIDI:user/release-keys

Samsung SM G935F*, OS:7.0, CPU:arm64-v8a, GPU:Mali-T880, Build:samsung/hero2ltexx/hero2lte:6.0.1/MMB29K/G935FXXU1BPLB:user/release-keys

iPad Air (iOS8.1.1)

Not reproduced when Galaxy S6 Edge was with Android 6.0.1

This issue has been reported to google: https://issuetracker.google.com/u/1/issues/69360770

------------------------------------
Fixed in:2017.2.2p2, 2018.1.0b10, 2018.2.0a1

Comments (20)

  1. A53f6302ebf6f5a7a738574c89a65ecc?d=mm

    Hobodi

    Sep 12, 2018 14:12

    2018.2.5f - gyro.input still drifting

  2. 317445bbc7f0f2bf4a47c75665e2c219?d=mm

    Neogene

    Apr 21, 2018 07:44

    Reported on 2017.4.1f1 on Samsung S6 and A8, created issue# 1028669

  3. 7b5dd6f2884ac2baa5b504e254cd144e?d=mm

    Hiverlab

    Jan 24, 2018 09:23

    Report this issue:
    Unity 2017.3

    Pixel 2 XL
    Samsung S6 Edge

  4. E0571bafcc5ee6bbf98847ff22428e58?d=mm

    a6n0rma1

    Jan 24, 2018 00:35

    This might be considered necroposting, but I will leave this here in the hope that someone finds it usefull and stops tearing at his/her hair, like I did with the aforementioned bug. After countless tests and even fooling around with:

    Input.compensateSensors = false;
    Input.gyro.updateInterval = 0.01F;

    I finally tracked down the cause of the gyro lag on google vr and specific android devices. DISABLE automatic brightness setting on your phone (https://www.pntbrother.com/how-to-turn-off-auto-brightness-on-android). When you put the phone inside the vr headset the sensor constantly reads the small changes in screen brightness and alters screen dimming resulting in lag from the gyro sensor. This worked on a Samsung Galaxy Note 4, Xiaomi Redmi 4 Prime and a Samsung Galaxy S7 which all had the same problem.

  5. 3562d084f50ca0e98c3382a137b7b844?d=mm

    Retinad

    Dec 19, 2017 23:20

    Problem still exists in Unity 2017.3.0f3 on Android Samsung Galaxy S6. Any workaround? @JAMES-DECARLO : Do you have a solution? I tried with Input.gyro.rotationRate, it is faster but it drift really fast...

  6. 56c877a1b2670288cc4b5e39c17d8e64?d=mm

    arocha55

    Nov 16, 2017 16:33

    Also seen with Pixel 2 and Pixel 2 XL devices running Android 8.0 on Unity 2017.2.0f3.

    Any updates on when can we expect a fix for this? It is affecting flag ship Android phones.

    Thanks!

  7. 5be042c7db407164ccc2c19de950bff8?d=mm

    HalliHacker

    Nov 03, 2017 17:20

    Also affects 2017.2.0f3 on (at least) Samsung S6

  8. 838ff6a88dc6570e7dbf70438ee98748?d=mm

    infuseMed

    Oct 30, 2017 19:26

    This issue occurs with 2017.1.1f1 with a Pixel 2 (but does not occur with Pixel 1 XL)

  9. D921779351cea186c2a3c17b4d643cbc?d=mm

    spacefrog

    Oct 24, 2017 09:14

    This heavily hurts my current development for the Galaxy S6/S7 series
    Input.gyro.updateInterval does'nt work at all, always reporting 2E+10, even right after setting the value . Please Unity FIX THIS !

  10. 0570a63ec866e52624992cb793c45d4a?d=mm

    pezvolador

    Oct 18, 2017 16:42

    Not sure if it's strictly related to the issues described here, but I have experienced the same lag with a Huawei p8 lite 2017.

    I ran sensor box and noticed that the gyro works extremely slow as is, so it may be malfunctioning. But anyway, is there any alternative method to avoid using the gyroscope when developing VR apps in unity?

    The fact that some VR apps work just fine makes me think there must be some kind of workaround.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.