# SPS vs thinInstances

**URL:** <https://forum.babylonjs.com/t/sps-vs-thininstances/22653>\
**Category:** Questions\
**Created:** [July 28, 2021, 9:51am UTC](https://forum.babylonjs.com/t/sps-vs-thininstances/22653 "2021-07-28T09:51:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarianG](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mariang/32/138_2.png) [@MarianG](https://forum.babylonjs.com/u/MarianG)\
**Post date:** [July 28, 2021, 9:51am UTC](https://forum.babylonjs.com/t/sps-vs-thininstances/22653/1 "2021-07-28T09:51:27Z")

</div>

Hi boys & girls, … long time… 😅 hope you are all fine

Even if I saw thin question for few times on this forum I said I have to ask my question in a different topic.  
I cann’t explain one thing.  
Why a scene with thin instances is less performant than a scene with sps, in a specific scenario.  
Almost all ‘numbers’ from thinInstance scene inspector are smaller than SPS scene, but the FPS is smaller too. All meshes are static, without interaction and witout collisions  
It is exactly the same scene, builded with SPS or thinInstances and rendered using the dedicated GPU or not.

 ![Screenshot_6](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/4/b/4b0db26e2ed0decb19e75d140d5a2fc8f258ecf1.png)  
Thanks

---

<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:** [July 28, 2021, 11:45am UTC](https://forum.babylonjs.com/t/sps-vs-thininstances/22653/2 "2021-07-28T11:45:44Z")

</div>

Are you able to test with 5.0?

Also, that would be interesting to see the “Frame steps duration” counters, to see the time spent in javascript.

In any case, a repro somewhere would be the best move for people to help you.

---

<div class="post-metadata">

**Author:** ![MarianG](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mariang/32/138_2.png) [@MarianG](https://forum.babylonjs.com/u/MarianG)\
**Post date:** [July 29, 2021, 5:48am UTC](https://forum.babylonjs.com/t/sps-vs-thininstances/22653/3 "2021-07-29T05:48:47Z")

</div>

I’ll try to reproduce it on playground. I’ll be back 😉

---

<div class="post-metadata">

**Author:** ![MarianG](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mariang/32/138_2.png) [@MarianG](https://forum.babylonjs.com/u/MarianG)\
**Post date:** [July 29, 2021, 7:39am UTC](https://forum.babylonjs.com/t/sps-vs-thininstances/22653/4 "2021-07-29T07:39:08Z")

</div>

I think I solved it while I tried to reproduce 😂  
The problem was the boundingInfo  
Simply adding

```auto
//this line
shape.doNotSyncBoundingInfo = true;

shape.thinInstanceSetBuffer("matrix", matrixBuffer);

// and this line
shape.thinInstanceRefreshBoundingInfo(false);

```

now both SPS and thinInstance scenes are up to 120fps 🙌  
Cheers! 🍻
