GLBasic forum

Main forum => GLBasic - en => Topic started by: spacefractal on 2012-Aug-30

Title: performance drop while music playing on Android?
Post by: spacefractal on 2012-Aug-30
Today I found out when I disable the music on my HP Touchpad in Greedy Mouse, then there is no lag anymore and run stable. When music is playing, there is some fps drops (while LIMITFPS still wacky on PC, but its not about it in this thread).

I known ogg is the, but does its mix using the main thread, then I guess its why its might slowdown? Its should really use own thread to do?

I just wonder why there framerate is unstable when music is played.

Howover not sure its a glbasic bug, hence its I not posted it in the bug section.
Title: performance drop while music playing on Android?
Post by: Kitty Hello on 2012-Sep-01
Maybe the music samplerate hassome influence? I'm using plain sdl_mixer playmusic command.
Title: Re: performance drop while music playing on Android?
Post by: spacefractal on 2012-Sep-01
That why I hope to see adpcm which uses much less CPU and/or possible to set final mixer to example 22khz or such. Yes sample rate might did some influence.

The game don't need 44khz stereo.

One some devices framerate fall bit too much or was unstable. But for now I use music for soundfx for lower graphics setting (greedy mouse have tree settings), thus also kill music of course, but it's a trade off for now.