# NME - optimalization warnings are not disappearing

**URL:** <https://forum.babylonjs.com/t/nme-optimalization-warnings-are-not-disappearing/23921>\
**Category:** Bugs\
**Created:** [September 17, 2021, 4:46pm UTC](https://forum.babylonjs.com/t/nme-optimalization-warnings-are-not-disappearing/23921 "2021-09-17T16:46:53Z")\
**Posts on this page:** 11\
**Page:** 1

<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:** [September 17, 2021, 4:46pm UTC](https://forum.babylonjs.com/t/nme-optimalization-warnings-are-not-disappearing/23921/1 "2021-09-17T16:46:53Z")

</div>

Hi!  
The node target is set to Vertex but the warning disappears only after you save as unique URL. Or is this an intention?  
Thank you!

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

---

<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:** [September 17, 2021, 4:53pm UTC](https://forum.babylonjs.com/t/nme-optimalization-warnings-are-not-disappearing/23921/2 "2021-09-17T16:53:36Z")

</div>

It is the intention because else is not obvious when looking at the graph that this node will be in the vertex shader (as it is connected to a node on the fragment side of the house)

---

<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:** [September 17, 2021, 5:02pm UTC](https://forum.babylonjs.com/t/nme-optimalization-warnings-are-not-disappearing/23921/3 "2021-09-17T17:02:14Z")

</div>

Can you please have a look at this NME?  
[https://nme.babylonjs.com/#FYTHNX#2](https://nme.babylonjs.com/#FYTHNX#2)  
Open the uvTwirl frame. Most of the nodes were flagged as promoted when I added the custom frame. (it would be cool to have the flag in the frame header also) I’ve explicitly set them to target Vertex. The warnings were still there. I’ve saved the graph. All of the flags has disappeared except one, the Add (y) node even though that node is set to target Vertex.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [September 17, 2021, 5:20pm UTC](https://forum.babylonjs.com/t/nme-optimalization-warnings-are-not-disappearing/23921/4 "2021-09-17T17:20:28Z")

</div>

@Evgeni_Popov do you mind having a look into into it ?

---

<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:** [September 17, 2021, 5:29pm UTC](https://forum.babylonjs.com/t/nme-optimalization-warnings-are-not-disappearing/23921/5 "2021-09-17T17:29:54Z")

</div>

@roland Sorry, I don’t understand what to do to repro / what is the problem in the last link you provided? Here’s what I see when I open the frame:

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

---

<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:** [September 17, 2021, 6:28pm UTC](https://forum.babylonjs.com/t/nme-optimalization-warnings-are-not-disappearing/23921/6 "2021-09-17T18:28:43Z")

</div>

@Evgeni_Popov Hello!  
Why is the Add node still flagged as promoted even though I set it to Vertex? I did it to all to others and the flag has disappeared on all of them, just the add Node (right corner) is still flagged.

1. I opened a new node material in the editor and added an existing custom frame
2. nodes got flagged because of automatic promotion
3. I set all the targets to Vertex (I believe it is the moment when the flag should disappear but it doesn’t)
4. I saved the NME to URL
5. All nodes got back to normal (without the promotion flag) only the Add node is still saying that it was promoted automatically to target Vertex even though it was saved as target Vertex.

Hopefully this sounds more clearer 🖖

Thank you!

---

<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:** [September 17, 2021, 9:55pm UTC](https://forum.babylonjs.com/t/nme-optimalization-warnings-are-not-disappearing/23921/7 "2021-09-17T21:55:14Z")

</div>

Could you provide a link corresponding to step 1 from your explanations?

---

<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:** [September 22, 2021, 7:11pm UTC](https://forum.babylonjs.com/t/nme-optimalization-warnings-are-not-disappearing/23921/8 "2021-09-22T19:11:34Z")

</div>

Hi @Evgeni_Popov!  
I couldn’t reproduce the the original issue. Only the Add block is still marked with as promoted. Expand the uvTwirl custom frame and there is an Add block in the lower right corner. It is marked despite it is set to target Vertex  
[https://nme.babylonjs.com/#FYTHNX#2](https://nme.babylonjs.com/#FYTHNX#2)

Another small issue I’ve found: The following material uses the FragCoord NME block. The blocks got promoted to Vertex but the FragCoord block can be used only in a fragment shader. There is a FragCoord block used in the Screen position custom frame.  
[https://nme.babylonjs.com/#FYTHNX](https://nme.babylonjs.com/#FYTHNX)

Thank you!

---

<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:** [September 22, 2021, 8:12pm UTC](https://forum.babylonjs.com/t/nme-optimalization-warnings-are-not-disappearing/23921/9 "2021-09-22T20:12:33Z")

</div>

> [@roland](#):
>
> Only the Add block is still marked with as promoted. Expand the uvTwirl custom frame and there is an Add block in the lower right corner. It is marked despite it is set to target Vertex

I think it is what is expected: that’s **because** you set it to Vertex and by default it would have been created in the fragment that it is marked (and so the user can visually know that this block is not in the stage it would have been by default). @Deltakosh can you confirm it’s the expected behaviour?

> [@roland](#):
>
> Another small issue I’ve found: The following material uses the FragCoord NME block.

I think this one is ok because you have a clear error message that explains the problem. It’s on the user to correct the problem. It’s not really possible to prevent this from happening as you can change the target of any block (or so), and depending on your changes this will make the `fragCoord` change its own target.

---

<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:** [September 22, 2021, 8:34pm UTC](https://forum.babylonjs.com/t/nme-optimalization-warnings-are-not-disappearing/23921/10 "2021-09-22T20:34:50Z")

</div>

Thank you!

---

<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:** [September 22, 2021, 8:41pm UTC](https://forum.babylonjs.com/t/nme-optimalization-warnings-are-not-disappearing/23921/11 "2021-09-22T20:41:19Z")

</div>

> [@Evgeni\_Popov](#):
>
> can you confirm it’s the expected behaviour?

Totally!
