Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
fawnha's avatar
fawnha
Honored Guest
11 years ago

1 frame delay on GUI display

I have been trying for a couple of days to implement a uGUI GUI in Gear VR but I always get a one frame delay when displaying the GUI. This result of this is that when I stop rotating the HMD the GUI takes a frame to catch up which is really ugly. I first tried to attach the Canvas to the left, center and right anchor points but this caused the delay. Next I tried to attach a callback to OVRCameraRig.UpdatedAnchors and used this callback to set the Canvas' position and orientation using the OVRCameraRig.rightEyeAnchor transform (I also tried leftEyeAnchor and centerEyeAnchor). I managed to get the GUI to stay in the center of the screen but the 1 frame delay was still present.

The interesting and somewhat worrying thing is that the menu created by the OVRUGUI.cs script which is part of the SDK also has the same 1 frame delay.

Has anyone else experienced this problem and has anyone worked out how to solve it?

3 Replies

Replies have been turned off for this discussion
  • fawnha's avatar
    fawnha
    Honored Guest
    Yes, I tried the left camera, right camera and center camera.