FPS drop help

Hello. I am working on this game: Link

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?

1 Like

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

1 Like

How about something like this?

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…)

1 Like

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! :+1:

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

https://musescore.com/user/10481636/scores/4830525

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

1 Like

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

1 Like

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

1 Like

Thanks so much for this! I quite like it.

1 Like

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

1 Like

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

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!

2 Likes

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.

1 Like

:frowning: What can I do to improve @TakeTheL08???

@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???

1 Like

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

1 Like

It’s missing some gaps in the music

1 Like

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

It’s missing some gaps in the beats.