Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Strobe effect on all moving objects in Gear VR

Discussion in 'AR/VR (XR) Discussion' started by Gnimmel, Nov 17, 2016.

  1. Gnimmel

    Gnimmel

    Joined:
    Apr 21, 2010
    Posts:
    358
    I have a bunch of objects (cars) driving around a scene in Gear VR. Sometimes they all look great but then other times I get a strobe effect where its almost like there are 2 cars on top of each other.

    The background is fine when I look around, so it's not the Gear VR dropping frames or anything like that.

    After some searching I see this is a common problem with unity, jerky and flickering on moving objects.

    I've tried changing my movement code to FixedUpdate instead of Update which was suggested in some posts, but this just makes a worse jitter motion.

    Some posts seem to point to the camera movement and the objects movement being on different updates, but GearVR's camera movement its not my code so I have no way to check this.

    Can anyone offer some help here?
     
  2. Selzier

    Selzier

    Joined:
    Sep 23, 2014
    Posts:
    652
    Are you using realtime lights?
     
  3. Gnimmel

    Gnimmel

    Joined:
    Apr 21, 2010
    Posts:
    358
  4. PiroKun

    PiroKun

    Joined:
    Nov 12, 2012
    Posts:
    27
    check your fps. with ATW and low fps is normal to see problems in moving objects but not in the background.
    Im working with gearVR too, and I had to move everything to unlit shader because the lowFPS.
     
  5. Selzier

    Selzier

    Joined:
    Sep 23, 2014
    Posts:
    652
  6. Gnimmel

    Gnimmel

    Joined:
    Apr 21, 2010
    Posts:
    358
    Thanks for the replies.

    I just added a FPS counter and it looks like the game is jumping between 30 and 60 FPS (29 and 59 on the counter). This would explain the jerky movement.

    However, the head movement looks fine and is definitely not dropping to 30? Does the Gear VR update camera/head movement at a constant 60 ?
     
  7. Gnimmel

    Gnimmel

    Joined:
    Apr 21, 2010
    Posts:
    358
    After a lot of experimenting and optimization I have my game running mostly at 60 fps now. This has fixed the strobe effect and looks a lot better.