# Paused before potential out-of-memory crash

**URL:** <https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028>\
**Category:** Questions\
**Created:** [March 6, 2020, 7:50am UTC](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028 "2020-03-06T07:50:52Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![zhang](https://avatars.discourse-cdn.com/v4/letter/z/aeb1de/32.png) [@zhang](https://forum.babylonjs.com/u/zhang)\
**Post date:** [March 6, 2020, 10:18am UTC](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028/23 "2020-03-06T10:18:05Z")

</div>

Does animation still exist?

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [March 6, 2020, 10:19am UTC](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028/24 "2020-03-06T10:19:18Z")

</div>

Of course, but you can check it yourself in the last playground i pasted

---

<div class="post-metadata">

**Author:** ![zhang](https://avatars.discourse-cdn.com/v4/letter/z/aeb1de/32.png) [@zhang](https://forum.babylonjs.com/u/zhang)\
**Post date:** [March 6, 2020, 10:22am UTC](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028/25 "2020-03-06T10:22:26Z")

</div>

I tried to play the animation, but the FPS was very low

---

<div class="post-metadata">

**Author:** ![zhang](https://avatars.discourse-cdn.com/v4/letter/z/aeb1de/32.png) [@zhang](https://forum.babylonjs.com/u/zhang)\
**Post date:** [March 6, 2020, 10:23am UTC](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028/26 "2020-03-06T10:23:04Z")

</div>

[https://playground.babylonjs.com/#P4MFKM#2](https://playground.babylonjs.com/#P4MFKM#2)

---

<div class="post-metadata">

**Author:** ![zhang](https://avatars.discourse-cdn.com/v4/letter/z/aeb1de/32.png) [@zhang](https://forum.babylonjs.com/u/zhang)\
**Post date:** [March 6, 2020, 10:29am UTC](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028/27 "2020-03-06T10:29:34Z")

</div>

My upgrade from 4.0 to 4.1 did not reduce the size of the packed file, but increased it. It does not improve the performance of running, but reduces the quality of rendering and the effect of model display. Maybe I change my code and set some environment variables.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [March 6, 2020, 10:30am UTC](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028/28 "2020-03-06T10:30:27Z")

</div>

Not sure what you mean with low FPS  
It is running the animations at 60 FPS.

Maybe you can describe what you are trying to achieve, and we can help better

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/f/f2082b5f41c456bfaa69da82189506c12eb4be6d.png)

---

<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:** [March 6, 2020, 10:30am UTC](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028/29 "2020-03-06T10:30:28Z")

</div>

Note that this code in `InstancedMesh.constructor`:

```auto
this.animations = source.animations;
for (var range of source.getAnimationRanges()) {
    if (range != null) {
        this.createAnimationRange(range.name, range.from, range.to);
    }
}

```

is new in 4.1.

So, if you did something similar on your end before 4.1, you don’t need (should not) do it anymore.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [March 6, 2020, 10:32am UTC](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028/30 "2020-03-06T10:32:07Z")

</div>

And that is the reason the never ending loop occurs. Rendering should not be affected by that

---

<div class="post-metadata">

**Author:** ![zhang](https://avatars.discourse-cdn.com/v4/letter/z/aeb1de/32.png) [@zhang](https://forum.babylonjs.com/u/zhang)\
**Post date:** [March 6, 2020, 10:33am UTC](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028/31 "2020-03-06T10:33:20Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/4/424116f63749c2ce68e593dd70003c79ea7c70a0.png)  
I only have 8fps

---

<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:** [March 6, 2020, 10:37am UTC](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028/32 "2020-03-06T10:37:06Z")

</div>

8 fps using this link: [https://playground.babylonjs.com/#P4MFKM#2](https://playground.babylonjs.com/#P4MFKM#2)  
?

I’m at 60fps too, and I don’t understand how it can be so low:  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/9/90144a06f98b5d947c67dc3128258bb2ab6a2911.png)

Only 8 draw calls and 676 faces, that’s nothing.

Are you sure there isn’t something else running in the background?

Maybe try to close/reopen your browser / try with another browser.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [March 6, 2020, 10:38am UTC](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028/33 "2020-03-06T10:38:27Z")

</div>

Seems odd. Try checking for performance issues in your debugger, see what takes the processing time.

---

<div class="post-metadata">

**Author:** ![zhang](https://avatars.discourse-cdn.com/v4/letter/z/aeb1de/32.png) [@zhang](https://forum.babylonjs.com/u/zhang)\
**Post date:** [March 6, 2020, 10:39am UTC](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028/34 "2020-03-06T10:39:43Z")

</div>

Sorry, there’s something wrong with my Google browser. He can’t run properly only in compatibility mode. It’s the compatibility mode that causes poor performance.

[Previous page](https://forum.babylonjs.com/t/paused-before-potential-out-of-memory-crash/9028.md?page=1)
