Hug playback lag
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

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!
I can only guess, but try selecting a different audio backend (the setting applies after closing LMMS)
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)?
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.