# Quest 3 flickers when using multiview and renderingGroupIds

**URL:** <https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229>\
**Category:** Bugs\
**Tags:** webxr, renderinggroupid\
**Created:** [January 15, 2024, 2:16pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229 "2024-01-15T14:16:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charge](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Charge](https://forum.babylonjs.com/u/Charge)\
**Post date:** [January 15, 2024, 2:16pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/1 "2024-01-15T14:16:17Z")

</div>

Hi,  
I recently got a Quest 3 and realised that my games were flickering when in VR (WebXR). This flickering does not happen on the Quest 2. The flickering does not happen on the Quest 3 if multiview is disabled.

The flickering occurs whenever a gui element is redrawn, so moving the pointer over a button, scrolling a window, etc…

The items that flicker are all on rendering group 0. Items on rendering groups \> 0 do not flicker.

Here is a playground showing the issue by creating a number of spheres with rendering group Ids from 0 to 3 and a button that when hovered briefly creates the flicker: [https://playground.babylonjs.com/#9K3MRA#1430](https://playground.babylonjs.com/#9K3MRA#1430)

---

<div class="post-metadata">

**Author:** ![Charge](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Charge](https://forum.babylonjs.com/u/Charge)\
**Post date:** [January 15, 2024, 2:34pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/2 "2024-01-15T14:34:49Z")

</div>

To confirm - the flickering occurs whether items are set renderingGroupIds or not, its just that items on the default rendering group Id (0) will always flicker when the gui updates. See [https://playground.babylonjs.com/#9K3MRA#1435](https://playground.babylonjs.com/#9K3MRA#1435)

Setting renderingGroupId \> 0 stops the flickering. See [https://playground.babylonjs.com/#9K3MRA#1439](https://playground.babylonjs.com/#9K3MRA#1439)

Unfortunately, I do need 4 rendering groups 🤔

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [January 15, 2024, 3:50pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/3 "2024-01-15T15:50:50Z")

</div>

cc @RaananW

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 15, 2024, 3:51pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/4 "2024-01-15T15:51:32Z")

</div>

Assigned @RaananW on January 15, 2024, 3:51pm UTC



---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 18, 2024, 12:50pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/5 "2024-01-18T12:50:21Z")

</div>

So! The best solution I can suggest is to close the eyes every time the GUI updates! 😉

Joke aside - I can totally reproduce this. It is probably related to an incorrect clear call somewhere along the way. I’ll debug this and hopefully find a solution soon.

---

<div class="post-metadata">

**Author:** ![Charge](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Charge](https://forum.babylonjs.com/u/Charge)\
**Post date:** [January 20, 2024, 10:02am UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/6 "2024-01-20T10:02:56Z")

</div>

Thanks for looking into this @RaananW - I just find it strange that my Quest 2 does not have this behaviour 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 22, 2024, 10:29am UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/7 "2024-01-22T10:29:06Z")

</div>

weird. might be the higher framerate. I am looking into it this week

---

<div class="post-metadata">

**Author:** ![Charge](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Charge](https://forum.babylonjs.com/u/Charge)\
**Post date:** [February 12, 2024, 1:16pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/8 "2024-02-12T13:16:26Z")

</div>

Hi @RaananW - just wondering if the fix for this issue is within the following pull request? [WebXR improvements by RaananW · Pull Request #14753 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/pull/14753)

Thanks

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [February 12, 2024, 1:23pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/9 "2024-02-12T13:23:56Z")

</div>

YES! oh wow, i totally forgot to answer here. Yes, it should be fixed with this one. This is one of the demos I am testing with this PR. Sorry, this PR takes longer than I wanted it to.

---

<div class="post-metadata">

**Author:** ![Charge](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Charge](https://forum.babylonjs.com/u/Charge)\
**Post date:** [February 12, 2024, 2:46pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/10 "2024-02-12T14:46:12Z")

</div>

Thanks for the update 👍

And no worries about the time, I’m well aware of how complicated issues can take longer than initially thought 😉

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [February 13, 2024, 1:24pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/11 "2024-02-13T13:24:36Z")

</div>

Just as a teaser

[quest 3 multiview error investigation | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/?snapshot=refs/pull/14753/merge#9k3mra#1430)

This is your playground with the latest snapshot of this PR. no flickering. Just dont click on the button, as there are no alerts in XR 🙂

---

<div class="post-metadata">

**Author:** ![Charge](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Charge](https://forum.babylonjs.com/u/Charge)\
**Post date:** [February 13, 2024, 2:38pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/12 "2024-02-13T14:38:22Z")

</div>

Hi @RaananW - I still get the flickering on this playground on my Quest 3, don’t you?

To get to it I opened this thread on my quest 3 and then clicked the link you provided.  
I then waited until the scene loads.  
Then I click the button to enter XR, and when I move the pointer over the button or I click it, it flickers in the same way as before

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [February 13, 2024, 3:26pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/13 "2024-02-13T15:26:39Z")

</div>

There seems to be an inconsistency with the XR layers implementation in different quest versions. The Quest 3, for some odd reason, doesn’t take the clearOnStart variable and still clears the texture. I’ll see how I can override this. A way to override this is not to use the WebXR layers multiview feature, and instead just use the standard XR pipeline, until the issue is resolved.  
I will see if i can get someone in Meta to look into it.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [February 13, 2024, 3:29pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/14 "2024-02-13T15:29:20Z")

</div>

The quest Pro had the same issue, but is working well after I applied the fix. Will continue investigating.

---

<div class="post-metadata">

**Author:** ![Charge](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Charge](https://forum.babylonjs.com/u/Charge)\
**Post date:** [February 13, 2024, 4:15pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/15 "2024-02-13T16:15:59Z")

</div>

> There seems to be an inconsistency with the XR layers implementation in different quest versions. The Quest 3, for some odd reason, doesn’t take the clearOnStart variable and still clears the texture. I’ll see how I can override this. A way to override this is not to use the WebXR layers multiview feature, and instead just use the standard XR pipeline, until the issue is resolved.  
> I will see if i can get someone in Meta to look into it.

Will this reduce performance for the Quest 3? Or will it stop the anti-aliasing? If so, I would prefer to just move everything to a rendering group greater than 0, which will solve the issue.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [February 13, 2024, 4:18pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/16 "2024-02-13T16:18:18Z")

</div>

yeah, there are caveats to everything 🙂

XR Layers is a new and sadly still unstable feature. I am sure the people at meta will have a very quick answer. I’ll keep you posted here

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [February 14, 2024, 9:29am UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/17 "2024-02-14T09:29:52Z")

</div>

Can I ask - what version of OS are you running? 60?

---

<div class="post-metadata">

**Author:** ![Charge](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Charge](https://forum.babylonjs.com/u/Charge)\
**Post date:** [February 14, 2024, 10:29pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/18 "2024-02-14T22:29:33Z")

</div>

Not sure offhand, will check tomorrow evening and let you know

---

<div class="post-metadata">

**Author:** ![Charge](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Charge](https://forum.babylonjs.com/u/Charge)\
**Post date:** [February 15, 2024, 7:22pm UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/19 "2024-02-15T19:22:03Z")

</div>

looks like im on version 62

 ![com.oculus.shellenv-20240215-191950](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/d/0dc30c1523bfac23c126ff58005471edf2966d17.jpeg)

---

<div class="post-metadata">

**Author:** ![Charge](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Charge](https://forum.babylonjs.com/u/Charge)\
**Post date:** [February 17, 2024, 8:38am UTC](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229/20 "2024-02-17T08:38:40Z")

</div>

Hi @RaananW , would it be possible to explain why the issue doesn’t occur when using a rendering group Id greater than 1?

Thanks

[Next page](https://forum.babylonjs.com/t/quest-3-flickers-when-using-multiview-and-renderinggroupids/47229.md?page=2)
