# Would forceCompilation help for NodeMaterials

**URL:** <https://forum.babylonjs.com/t/would-forcecompilation-help-for-nodematerials/20063>\
**Category:** Questions\
**Tags:** material\
**Created:** [April 16, 2021, 2:03pm UTC](https://forum.babylonjs.com/t/would-forcecompilation-help-for-nodematerials/20063 "2021-04-16T14:03:28Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![br-matt](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/br-matt/32/22436_2.png) [@br-matt](https://forum.babylonjs.com/u/br-matt)\
**Post date:** [April 26, 2021, 7:40pm UTC](https://forum.babylonjs.com/t/would-forcecompilation-help-for-nodematerials/20063/7 "2021-04-26T19:40:49Z")

</div>

Hey we recently got some help on this. It sounds like you are asking the same question. Check this response from Deltakosh for how to fix.

> [@How to stop NodeMaterial from generating same effects when not needed and save compilation time](https://forum.babylonjs.com/t/how-to-stop-nodematerial-from-generating-same-effects-when-not-needed-and-save-compilation-time/20171/12):
>
> Alright people!! The next nightly (will be live in less than a hour) will let you do this: BABYLON.NodeMaterial.ParseFromSnippetAsync("#PX0637", scene).then(nme\_mat =\> { var texture\_block = nme\_mat.getTextureBlocks()[0]; texture\_block.texture = new BABYLON.Texture("/textures/grass.png"); box.material = nme\_mat; var clone = nme\_mat.clone("mat2", true); box2.material = clone; texture\_block = clone.getTextureBlocks()[0]; texture\_block.tex…

---

_[View the full topic](https://forum.babylonjs.com/t/would-forcecompilation-help-for-nodematerials/20063)._
