# Multiple link with mesh lag

**URL:** <https://forum.babylonjs.com/t/multiple-link-with-mesh-lag/9300>\
**Category:** Questions\
**Created:** [March 18, 2020, 9:03am UTC](https://forum.babylonjs.com/t/multiple-link-with-mesh-lag/9300 "2020-03-18T09:03:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![phaselock](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@phaselock](https://forum.babylonjs.com/u/phaselock)\
**Post date:** [March 18, 2020, 9:03am UTC](https://forum.babylonjs.com/t/multiple-link-with-mesh-lag/9300/1 "2020-03-18T09:03:32Z")

</div>

repro: [https://www.babylonjs-playground.com/#XCPP9Y#2091](https://www.babylonjs-playground.com/#XCPP9Y#2091)

100 spheres all with linkWithMesh. On my system in chrome and ffox, the frame rate drops to about 30~40fps. In my use case, it is entirely possible to have the same or more on animated meshes. Is there a workaround?

Also, profiler shows \_applyStates and \_layout largely responsible when the recurring handler throws warnings. Hope it helps.

---

<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:** [March 18, 2020, 1:57pm UTC](https://forum.babylonjs.com/t/multiple-link-with-mesh-lag/9300/2 "2020-03-18T13:57:45Z")

</div>

When you do this every frame needs to re render the underlying canvas used in the GUI for text. and reuse the texture on the main rendering pass.

I am not surprised that it is a bit slow.

In your case you could maybe generate just the text on dynamic textures and use 3d objects for it ??? I wonder if it would be faster.

---

<div class="post-metadata">

**Author:** ![phaselock](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@phaselock](https://forum.babylonjs.com/u/phaselock)\
**Post date:** [March 19, 2020, 4:22am UTC](https://forum.babylonjs.com/t/multiple-link-with-mesh-lag/9300/3 "2020-03-19T04:22:25Z")

</div>

[https://www.babylonjs-playground.com/#XCPP9Y#2098](https://www.babylonjs-playground.com/#XCPP9Y#2098)

looks good at 100 spheres, perf drops at 1000 on my sys. All its missing now is to animate the spheres while keeping the texture parented and facing the camera. fwiw, chrome is showing 34MB for the pg at 100 spheres and 90MB++ for 1000. That’s ~300kb per material/dynamictexture pair. More resources, better perf, duh…
