That's the VHold I believe it's called. Something to do with the Vertical refresh rate. I think there is an option in mame to fix this, however it requires a performance hit. And I think there is a build of Mame to take care of this sort of problem too. Called VMame or something I think... I'm not sure.