Part of this might be the crappy support for ATI cards in Linux (I have an ATI card), but there's another problem... ALSA.
I've recently installed ubuntu on my machine. I've been meaning to try out OSS4, instead of just using ALSA, because I've heard that it's so much better. What I heard was correct.
Beforehand, when running with ALSA, in bsnes I'd set system.video to xv (I'm using the open source drivers) and system.audio to openal.
The sound would be fine, and I would get 60fps, but it always looked like it was skipping frames (even with frameskip set to 0).
So, with ALSA removed from my system, and with OSS4 configured instead, I set system.video (in bsnes) to xv, and system.audio to oss. I play any game on bsnes linux now and it's perfect. Like before, I get 60fps, but the video is now nice and smooth. It must just be that ALSA produces a lot more overhead, and that OSS4 is faster (well, obviously, since I now not only get better performance on bsnes, but on my entire system)
The only problem I have now is that I occasionally get some static sound when playing games.
Sound is fine for everything else now, but in bsnes sound crackles. This might have something to do with bsnes running just a little but under fullspeed (like 1 fps below what it should do at times), but I'm not sure (and please don't crucify me if I'm wrong).
It's ok though; most of the time the crackling is barely audible; it only really shows itself when bsnes drops a few frames, which is every 3 or 4 minutes or so. EDIT: The first game I tested was Chrono Trigger where I got minor crackling sounds and occasional big crackling sounds; I tested a bunch of other games and I rarely get any sound crackling. I'm guessing this sound crackling has something to do with OSS4 trying to sync with the video and when the video lags even a little bit, so does OSS4, and then from this lag, sound in OSS4 crackles.
That settles it; OSS4 is awesome.
Another minor problem is that setting speed to uncapped now does nothing, it still runs at 60 fps (not like people would want to not play at the correct speed anyway).
OSS4 not only solves all the problems I have with bsnes on linux, but it also solves a lot of other problems; with other emulators I can now use OSS and get better sound. In general, the sound on my system is just better. Runescape works perfectly now too

Basically, ALSA+PulseAudio is shitty (I'm using Ubuntu 8.04.1). OSS4+esd is the way to go.
Well, if any of you guys here runs Ubuntu Linux, here is the guide I referred to:
https://help.ubuntu.com/community/OpenSound
Anyway, I hear byuu say that a lot of people complain about sound, and performance in the linux version of bsnes. This might help reduce some of the problems people have.
(I hope it does anyway; it does for me, at least).
EDIT:
While OSS4 is better, I've found that in the linux version of nestopia, OSS makes it slow (for now, I assume that this has to do witht he OSS driver in nestopia being badly written, and not the actual OSS4 being slow).
I installed an OSS plugin for sdl, and set the audio driver in nestopia to sdl, and it was perfect again.
To install this oss plugin for alsa (I'm assuming you use ubuntu), just do:
Code: Select all
sudo apt-get install libsdl1.2debian-oss
