Sixthhokage2 / ohboy

Automatically exported from code.google.com/p/ohboy
GNU General Public License v2.0
0 stars 1 forks source link

massive slowdown on linux-sdl when sdl sound is enabled #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Report from je.suis.bon in http://code.google.com/p/gnuboy/issues/detail?id=3

What steps will reproduce the problem?
1. compile with sdl sound enabled
2. play a game
3. the game plays slowly, and with a low framerate (30fps). sound output is 
terrible

What is the expected output? What do you see instead?
game at normal speed. normal sound output

What version of the product are you using? On what operating system?
linux amd64

Please provide any additional information below.
profiling and debugging confine the slowdown to main.c, pcm_submit(), line 875, 
"   if (pcm_buffered>=1) while(pcm_buffered == pcm_bufferlen);"

The gnuboy SDL port works fine

NOTE 1 I've not seen this on my amd64 cpu/machine BUT it was compiled in 32 bit 
mode, unclear at this stage if this is a 64 bit issue (however the SDL sound in 
OhBoy is not ideal).

NOTE 2 original report (see older issue, mentions crashes which have not been 
seen with 32 bit either).

Original issue reported on code.google.com by clac...@gmail.com on 31 Jan 2012 at 2:31