Im running mame (windows command line) I just found that the -waitvsync option fixs the line moving up the screen but then the FPS drops so low everything in unplayable.
I'm running MAME for Win32 optimized for the P4 from here...
http://www.redump.de/mame.shtmlMy system is a P4 2.8GHz with 512M of memory. My video card is the ArcadeVGA connected to a 15KHz arcade monitor. Even with this horsepower, I see tearing artifacts in many games.
I looked up the "waitvsync" option (which I haven't tried yet) and this is what I found. It sounds like exactly what we are experiencing.
http://www.mame.net/readmewin.html-[no]waitvsync
Waits for the refresh period on your computer's monitor to finish
before starting to draw video to your screen. If this option is off,
MAME will just draw to the screen at any old time, even in the middle
of a refresh cycle. This can cause "tearing" artifacts, where the top
portion of the screen is out of sync with the bottom portion. Tearing
is not noticeable on all games, and some people hate it more than
others. However, if you turn this option on, you will waste more of
your CPU cycles waiting for the proper time to draw, so you will see a
performance hit. The default is OFF (-nowaitvsync). This option
requires -ddraw.