# FPS drop help

**URL:** https://forum.makecode.com/t/fps-drop-help/5313
**Category:** Help
**Created:** [January 2, 2021, 11:01pm UTC](https://forum.makecode.com/t/fps-drop-help/5313 "2021-01-02T23:01:07Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![omnisImperium](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/omnisimperium/32/2728_2.png) [@omnisImperium](https://forum.makecode.com/u/omnisImperium)
#### Post date: [January 2, 2021, 11:01pm UTC](https://forum.makecode.com/t/fps-drop-help/5313/1 "2021-01-02T23:01:07Z")

</div>

Hello. I am working on this game: [Link](https://makecode.com/_Mm6X1zRqKbgr)

I am facing a small issue. After a small while, the frames-per-second takes a heavy hit and can reach as low as 5 FPS. Can someone help me fix this and maintain and FPS of around 30-40? Another thing, @UnsignedArduino your bio on the forum says that you will take any music requests. Can you pleasee make some music that will fit this game and have a neon kind of vibe?

---

<div class="post-metadata">

### Author: ![omnisImperium](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/omnisimperium/32/2728_2.png) [@omnisImperium](https://forum.makecode.com/u/omnisImperium)
#### Post date: [January 2, 2021, 11:47pm UTC](https://forum.makecode.com/t/fps-drop-help/5313/2 "2021-01-02T23:47:34Z")

</div>

Also can someone give me feedback on the camera? I tried to do something different with it, by making it a bit slower than the player

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [January 2, 2021, 11:47pm UTC](https://forum.makecode.com/t/fps-drop-help/5313/3 "2021-01-02T23:47:48Z")

</div>

How about something like this?

[https://musescore.com/the\_band\_geek/stereomadnessgeometrydashvirtuosoversion](https://musescore.com/the_band_geek/stereomadnessgeometrydashvirtuosoversion)

And also, do you need in blocks or are you fine with JS? (I should figure out how to make my music an extension so any project can use it easily…)

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [January 3, 2021, 12:04am UTC](https://forum.makecode.com/t/fps-drop-help/5313/4 "2021-01-03T00:04:18Z")

</div>

When you initialize the game, the camera sprite should be directly on top of the player, because in the beginning, I had to wait a long time for the camera to align with the player. Otherwise, it is good! 👍

Also, I found this one, a simpler version of the “Stereo madness” song:

[https://musescore.com/user/10481636/scores/4830525](https://musescore.com/user/10481636/scores/4830525)

Tell me which one you prefer, or if you want a different song 🙂

---

<div class="post-metadata">

### Author: ![omnisImperium](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/omnisimperium/32/2728_2.png) [@omnisImperium](https://forum.makecode.com/u/omnisImperium)
#### Post date: [January 3, 2021, 12:33am UTC](https://forum.makecode.com/t/fps-drop-help/5313/5 "2021-01-03T00:33:36Z")

</div>

Thanks so much for this! I like the simpler version a bit more. JS would be fine. And thanks for the advice about the camera. And an extension would be a nice idea

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [January 3, 2021, 1:51am UTC](https://forum.makecode.com/t/fps-drop-help/5313/6 "2021-01-03T01:51:58Z")

</div>

> **[Stereo Madness by Geometry Dash](https://arcade.makecode.com/57777-29546-71311-14355)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

I’ve modified the beginning and end slightly so you can put it on forever loop. Hopefully, it’s good enough.🙂

---

<div class="post-metadata">

### Author: ![omnisImperium](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/omnisimperium/32/2728_2.png) [@omnisImperium](https://forum.makecode.com/u/omnisImperium)
#### Post date: [January 3, 2021, 3:05am UTC](https://forum.makecode.com/t/fps-drop-help/5313/7 "2021-01-03T03:05:49Z")

</div>

Thanks so much for this! I quite like it.

---

<div class="post-metadata">

### Author: ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)
#### Post date: [January 3, 2021, 4:32pm UTC](https://forum.makecode.com/t/fps-drop-help/5313/8 "2021-01-03T16:32:19Z")

</div>

Hi! This is great! Brings back memories!  
Could you do this one?  
[https://musescore.com/user/31196819/scores/5480313](https://musescore.com/user/31196819/scores/5480313)

---

<div class="post-metadata">

### Author: ![TakeTheL08](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/takethel08/32/7018_2.png) [@TakeTheL08](https://forum.makecode.com/u/TakeTheL08)
#### Post date: [January 3, 2021, 4:32pm UTC](https://forum.makecode.com/t/fps-drop-help/5313/9 "2021-01-03T16:32:24Z")

</div>

i play gd  
your stereo madness version is not really fully correct

---

<div class="post-metadata">

### Author: ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)
#### Post date: [January 3, 2021, 4:32pm UTC](https://forum.makecode.com/t/fps-drop-help/5313/10 "2021-01-03T16:32:40Z")

</div>

I think I know why! The most common reason is too many sprites! baybe the enemy is not 1 sprite but actually multiple inside… or too many created!

---

<div class="post-metadata">

### Author: ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)
#### Post date: [January 3, 2021, 5:35pm UTC](https://forum.makecode.com/t/fps-drop-help/5313/11 "2021-01-03T17:35:29Z")

</div>

> [@TakeTheL08](#):
>
> hidden by @MakeCode

Um, I don’t think that is very nice. It’s pretty hard to make good music like this one to makecode arcade because of the musical limits. Don’t discourage people.

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [January 3, 2021, 5:35pm UTC](https://forum.makecode.com/t/fps-drop-help/5313/12 "2021-01-03T17:35:49Z")

</div>

☹ What can I do to improve @TakeTheL08???

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [January 3, 2021, 5:36pm UTC](https://forum.makecode.com/t/fps-drop-help/5313/13 "2021-01-03T17:36:16Z")

</div>

@DahbixLP is correct - you are constantly generating too many sprites while not destroying them - maybe have them destroy themselves after 10 seconds???

I’m also maintaining a good 200FPS too - maybe your computer was running too many programs at that time???

---

<div class="post-metadata">

### Author: ![omnisImperium](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/omnisimperium/32/2728_2.png) [@omnisImperium](https://forum.makecode.com/u/omnisImperium)
#### Post date: [January 3, 2021, 5:36pm UTC](https://forum.makecode.com/t/fps-drop-help/5313/14 "2021-01-03T17:36:58Z")

</div>

Thanks! I might destroy the enemy after 10-15 seconds

---

<div class="post-metadata">

### Author: ![TakeTheL08](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/takethel08/32/7018_2.png) [@TakeTheL08](https://forum.makecode.com/u/TakeTheL08)
#### Post date: [January 3, 2021, 5:37pm UTC](https://forum.makecode.com/t/fps-drop-help/5313/15 "2021-01-03T17:37:16Z")

</div>

It’s missing some gaps in the music

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [January 3, 2021, 6:17pm UTC](https://forum.makecode.com/t/fps-drop-help/5313/16 "2021-01-03T18:17:03Z")

</div>

It sounds fine on my computer - there are gaps but I think it’s good enough, considering a _piece of code_ made it.

---

<div class="post-metadata">

### Author: ![TakeTheL08](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/takethel08/32/7018_2.png) [@TakeTheL08](https://forum.makecode.com/u/TakeTheL08)
#### Post date: [January 12, 2021, 4:27pm UTC](https://forum.makecode.com/t/fps-drop-help/5313/17 "2021-01-12T16:27:10Z")

</div>

It’s missing some gaps in the beats.
