# GRL not working for points defined as \[ \] \[ \] after optimizing performance

**URL:** <https://forum.babylonjs.com/t/grl-not-working-for-points-defined-as-after-optimizing-performance/49454>\
**Category:** Bugs\
**Created:** [April 8, 2024, 6:36am UTC](https://forum.babylonjs.com/t/grl-not-working-for-points-defined-as-after-optimizing-performance/49454 "2024-04-08T06:36:11Z")\
**Posts on this page:** 3\
**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:** [April 8, 2024, 6:36am UTC](https://forum.babylonjs.com/t/grl-not-working-for-points-defined-as-after-optimizing-performance/49454/1 "2024-04-08T06:36:11Z")

</div>

> [@Optimizing performance of GreasedLineMesh.\_setPoints](https://forum.babylonjs.com/t/optimizing-performance-of-greasedlinemesh-setpoints/49168/15):
>
> This PR unfortunatelly introduced a bug: points: [[-1,1,0, 1,1,0], [-1,-1,0, 1,-1,0] ] Produces: Expected: Cna you check it please?

---

<div class="post-metadata">

**Author:** ![kzhsw](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Post date:** [April 8, 2024, 8:06am UTC](https://forum.babylonjs.com/t/grl-not-working-for-points-defined-as-after-optimizing-performance/49454/2 "2024-04-08T08:06:14Z")

</div>

> [@Optimizing performance of GreasedLineMesh.\_setPoints](https://forum.babylonjs.com/t/optimizing-performance-of-greasedlinemesh-setpoints/49168/16):
>
> This could be the same index thing reported [here](https://github.com/BabylonJS/Babylon.js/pull/14934#issuecomment-2040401440), seems this pr fixes it.

---

<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:** [April 8, 2024, 8:17am UTC](https://forum.babylonjs.com/t/grl-not-working-for-points-defined-as-after-optimizing-performance/49454/3 "2024-04-08T08:17:03Z")

</div>

Tested in the snapshot environment and it works. Thx!
