PlayMusic causes game to get REALLY choppy

Monkey Targets Forums/Android/PlayMusic causes game to get REALLY choppy

benmc(Posted 2012) [#1]
I don't know what's going on, but if I add PlayMusic and a small music file (256Kb ogg) at the beginning of the program, the game runs REALLY choppy on the device.

Has anyone had a problem with this? I'm using v66


benmc(Posted 2012) [#2]
I'll add that I'm running at 60FPS, and even if I lower it to 30FPS, I'm finding that it still causes the game to freeze here and there. The choppiness is very random.


Xaron(Posted 2012) [#3]
Hmm... I don't have that problem. I've used mp3 and ogg, both play well and the app reacts normal.

What specific device do you use?


benmc(Posted 2012) [#4]
I'm using a galaxy tab 7"

When a sound plays, it makes the whole app stutter for a second too, making sound fx ruin the experience. But I think you're right, it's not Monkey, it's probably the device. After re-booting it did get a little better, so it must all stem from the hardware.


dave.h(Posted 2012) [#5]
i test mine on a galaxy tab 7" and ive never experienced this problem.


therevills(Posted 2012) [#6]
Are you only calling PlayMusic once?

I normally do something like this:

1. Setup Screen
2. Play Music
3. Loop

So that PlayMusic is only played once per screen.


benmc(Posted 2012) [#7]
Yes, it's only called once, and before the first menu screen shows too.