lmms icon indicating copy to clipboard operation
lmms copied to clipboard

Hug playback lag

Open djnotes opened this issue 3 years ago • 3 comments

Bug Summary

This version (LMMS 1.3.0-alpha.1.218+g9faa1d90c) has huge lag on Linux. It takes about 3-4 seconds for the pressed key to sound, or for the highlighted MIDI note in Piano roll to sound.

Steps to reproduce

Go to Piano Roll and play some notes from keyboard. You can also play anything in the song editor. The indicator is not in sync with the sound that you hear.

Expected behavior

Realtime playback of the pressed keys or indicated notes.

Actual behavior

The sound of the playback always lags behind the actuall notehead by 3-4 seconds.

Screenshot

image

Affected LMMS versions

LMMS 1.3.0-alpha.1.218+g9faa1d90c The previous one (build) had this issue too.

System Info

Fedora 36

Logs

Click to expand
Don't know where to find these!

djnotes avatar Aug 17 '22 12:08 djnotes

I can only guess, but try selecting a different audio backend (the setting applies after closing LMMS)

RiedleroD avatar Aug 18 '22 16:08 RiedleroD

I switched the audio backend to ALSA and device to default. Now it works without those lags. Thank you. So, is this a bug or the natural expected behavior of PulseAudio (previous settings)?

djnotes avatar Aug 19 '22 12:08 djnotes

pulseaudio is very buggy in general, I don't recommend it. It's definitely not intended behavior, even though pa is known for introducing relatively large delays to the audio pipeline. I'm talking between 0.25 and 0.5 seconds on average.

RiedleroD avatar Aug 21 '22 17:08 RiedleroD