tildearrow / furnace

a multi-system chiptune tracker compatible with DefleMask modules
GNU General Public License v2.0
2.61k stars 207 forks source link

ALSA buffer underrun regardless of buffer size settings #1072

Closed SynthGal closed 1 year ago

SynthGal commented 1 year ago

Hi, just built and installed and every demo song I've tried causes a buffer underrun. It is possible the cause is too old of a computer, but there's no listed minimum specs (unless I just can't read) so I am not sure.

Model: HP Mini 110-1030CA OS: AntiX Linux 22 32bit CPU: Intel Atom 1.6Ghz RAM: 2 GB

I tried setting the buffer size to 2096, and as many quality settings as low as I could, no dice. Even tried setting it to 4096 in the config file which solved the underrun, but there was no sound output. I don't think the emulation was even generating sound as the scope and VU meters were doing nothing. I don't know if the buffer size is in KB or MB, so I might just not have the RAM to even set it high enough.

I built with no flags, so I'm not sure if there's any flags I could use to optimize or otherwise help improve compatibility.

tildearrow commented 1 year ago

If xruns do not occur using chips with lightweight cores (e.g. Generic PCM DAC, PC Speaker, Amiga and QSound), then it's due to slow hardware.

If you need more performance, try building with the following arguments passed to CMake: -DCMAKE_C_FLAGS="-O2" -DCMAKE_CXX_FLAGS="-O2" (you can pass -O3 instead for further optimizations) Additionally, try selecting faster emulation cores in Settings > Emulation (ymfm, MAME and reSID).

SynthGal commented 1 year ago

These worked great! Some of the multichip demos still underrun a little but worked fine after setting quality to low. The point of running Furnace on this machine is for something portable to jam on, so I can always transfer the song to my desktop to polish up tracks and listen with better quality/cores. Thanks for the help!

tildearrow commented 1 year ago

No problem.