# Question about looping music

**URL:** https://forum.makecode.com/t/question-about-looping-music/45536
**Category:** Help
**Tags:** music
**Created:** [August 23, 2026, 5:07am UTC](https://forum.makecode.com/t/question-about-looping-music/45536 "2026-08-23T05:07:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pkplayz](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@pkplayz](https://forum.makecode.com/u/pkplayz)
#### Post date: [August 23, 2026, 5:07am UTC](https://forum.makecode.com/t/question-about-looping-music/45536/1 "2026-08-23T05:07:55Z")

</div>

I originally used multiple songs in my game and looped through some functions I made, but the memory usage spikes up after every song. I tried looping just one song using the “looping in the background” option thinking it’ll be better but it’s still spiking the memory usage… Is this something fixable or is makecode just like this?

> **[Crashout (StarrRogue Remix)](https://arcade.makecode.com/S84150-10532-01180-50553)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [August 23, 2026, 7:07pm UTC](https://forum.makecode.com/t/question-about-looping-music/45536/2 "2026-08-23T19:07:38Z")

</div>

There is a glitch right now where the browser sound events keep stacking up. I’m not aware of any issue with the built in music player that would cause this memory issue, but it’s written in c++ so there could also be a memory leak there.

Does clicking the restart button on the sim make the memory usage go down again or do you have to close and open the sim view or reload the tab to get it to go down again?

---

<div class="post-metadata">

### Author: ![ScriptScraper](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/scriptscraper/32/35438_2.png) [@ScriptScraper](https://forum.makecode.com/u/ScriptScraper)
#### Post date: [August 23, 2026, 7:20pm UTC](https://forum.makecode.com/t/question-about-looping-music/45536/3 "2026-08-23T19:20:28Z")

</div>

Unfortunately… music will simply increase the ram usage the more it plays, I think it’s a memory leak. If any sound or music plays for a long enough time, it’ll actually crash the editor and you’ll have to close out and open a new tab. I really hope @richard can fix it one day.

---

<div class="post-metadata">

### Author: ![pkplayz](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@pkplayz](https://forum.makecode.com/u/pkplayz)
#### Post date: [August 24, 2026, 5:24am UTC](https://forum.makecode.com/t/question-about-looping-music/45536/4 "2026-08-24T05:24:37Z")

</div>

Yeah after reloading it goes back down, but its a huge problem for me cuz I’m making an infinite runner. Good to know this isn’t something I can fix thanks!

---

<div class="post-metadata">

### Author: ![pkplayz](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@pkplayz](https://forum.makecode.com/u/pkplayz)
#### Post date: [August 24, 2026, 5:24am UTC](https://forum.makecode.com/t/question-about-looping-music/45536/5 "2026-08-24T05:24:41Z")

</div>

Same, would improve my game a lot 😢
