# material.needDepthPrePass in SPS blinks in new Chrome

**URL:** <https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425>\
**Category:** Bugs\
**Created:** [October 29, 2024, 2:27pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425 "2024-10-29T14:27:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterimg](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@peterimg](https://forum.babylonjs.com/u/peterimg)\
**Post date:** [October 29, 2024, 2:27pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/1 "2024-10-29T14:27:47Z")

</div>

Hi

After the last Chrome update, I noticed that my SPS started to blink when I hovered over Chrome Browser UI buttons and by itself. But mostly when you move your mouse between the page tabs and URL bar.

Here is a PG with the mentioned Babylon JS versions and Chrome version

> **[Babylon.js Playground](https://playground.babylonjs.com/#GLZ1PX%231327)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

![Screen Recording 2024-10-29 at 14.22.00](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/5/2559b51d43d263143f17779c2d790d383dc61c80.gif)

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [October 29, 2024, 3:16pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/2 "2024-10-29T15:16:45Z")

</div>

I can confirm…

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 29, 2024, 3:30pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/3 "2024-10-29T15:30:46Z")

</div>

Anything on the console? That seems to be a Chrome bug ☹

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [October 29, 2024, 3:32pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/4 "2024-10-29T15:32:34Z")

</div>

> [@Deltakosh](#):
>
> Anything on the console?

Nothing.

> [@Deltakosh](#):
>
> That seems to be a Chrome bug ☹

Yes, seems so.

---

<div class="post-metadata">

**Author:** ![peterimg](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@peterimg](https://forum.babylonjs.com/u/peterimg)\
**Post date:** [October 29, 2024, 3:37pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/5 "2024-10-29T15:37:17Z")

</div>

@roland @Deltakosh

I also did not find any performance hit or anything. It just started to blink in the app. This is how I found out. It started on 17th Oct 2024.

It is a Chrome issue but why only this part is doing it? Is there anything in your codebase that causes or its exposed to this?

I cant think of a timeline for Google to fix this, so I’m asking you.

Regards  
Peter

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 29, 2024, 3:44pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/6 "2024-10-29T15:44:28Z")

</div>

Probably related to the fact we have a webgl canvas?

---

<div class="post-metadata">

**Author:** ![peterimg](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@peterimg](https://forum.babylonjs.com/u/peterimg)\
**Post date:** [October 29, 2024, 3:45pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/7 "2024-10-29T15:45:52Z")

</div>

🤷

Don’t know…

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 29, 2024, 3:49pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/8 "2024-10-29T15:49:46Z")

</div>

Can you file a bug report to chromium?

---

<div class="post-metadata">

**Author:** ![peterimg](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@peterimg](https://forum.babylonjs.com/u/peterimg)\
**Post date:** [October 29, 2024, 4:08pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/9 "2024-10-29T16:08:01Z")

</div>

YYYY, it’s your library. You will know what to say better than I do. So can you open it?

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 29, 2024, 4:19pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/10 "2024-10-29T16:19:51Z")

</div>

Well I appreciate some help and I have no more idea than you on what chrome is doing

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [October 29, 2024, 4:32pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/11 "2024-10-29T16:32:32Z")

</div>

FYI WebGPU is not affected.

EDIT: @Deltakosh nor BJS 6.49.0/WebGL2… 🙈  
EDIT2: shit, BJS 6.49/WebGL2 is affected too… Sry 😃 I was moving the cursor too fast over the Chrome tabs

---

<div class="post-metadata">

**Author:** ![peterimg](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@peterimg](https://forum.babylonjs.com/u/peterimg)\
**Post date:** [October 29, 2024, 4:37pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/12 "2024-10-29T16:37:37Z")

</div>

So now you know even more about what to put in your issue to Google Chrome. I’m just the end user and I found this. I was trying to help localize this but please don’t drag me into fixing it with google. been there from my point of view its a waist of time if your not a big player. 🙂

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [October 29, 2024, 4:50pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/13 "2024-10-29T16:50:43Z")

</div>

I don’t think @peterimg has the experience how to properly report the bug, nor do I 🤪

> [@peterimg](#):
>
> waist of time if your not a big player. 🙂

waste of time, yes, I’ve experienced this too… 🙈

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 29, 2024, 5:02pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/14 "2024-10-29T17:02:34Z")

</div>

Seriously guys…you go to the website, you describe the issue and done…

Took me 2min…  
[After the last Chrome update, I noticed blinking when I hovered over tabs [376174085] - Chromium](https://issues.chromium.org/issues/376174085)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 29, 2024, 5:07pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/15 "2024-10-29T17:07:51Z")

</div>

And I cannot repro btw ☹

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 29, 2024, 5:08pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/16 "2024-10-29T17:08:54Z")

</div>

@roland or @peterimg : please comment on the bug post with your chrome version because mine does not repro…

---

<div class="post-metadata">

**Author:** ![peterimg](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@peterimg](https://forum.babylonjs.com/u/peterimg)\
**Post date:** [October 29, 2024, 6:02pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/17 "2024-10-29T18:02:50Z")

</div>

Actually what you described is not fully accurate. You can have any tabs open or just even wait and it will blink. A lot. Just to have like a hover effect triggered on any Google Chrome UI or even page buttons. Or leave that page open and move mouse they will also blink.

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [October 29, 2024, 6:24pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/18 "2024-10-29T18:24:42Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/1/4/1408550ef2ae7ecd0eb6522adb2247c4b68d8460.png)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/e/5/e5365a06c6161d78a848d75c3a4b6b97f32fdf5d.png)

Safari, Firefox - no issues.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 29, 2024, 6:31pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/19 "2024-10-29T18:31:21Z")

</div>

You now get why I should not have done the bug? I cannot even repro…

So please comment on the bug

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [October 29, 2024, 8:45pm UTC](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425/20 "2024-10-29T20:45:46Z")

</div>

I don’t repro either (Windows 11, Chrome 130.0.6723.71 (Official Build) (64-bit)).

[Next page](https://forum.babylonjs.com/t/material-needdepthprepass-in-sps-blinks-in-new-chrome/54425.md?page=2)
