Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Andypc on September 04, 2012, 02:29:29 pm

Title: Trackball and Vsync (Mame)
Post by: Andypc on September 04, 2012, 02:29:29 pm
I just set-up a Shuttle PC with Mame 0.143 to use in my Golden Tee Cab for Trackball games. I initially had a problem with the Trackball in that the input was lagging up to 10 seconds behind the actual trackball movement. After much searching on the Internet I found an old post from 2006 on some random forum stating that Vsync, Triple Buffering and Wait Sync all cause problems and lag with analog controls. I disabled Vsync and the Trackball works perfectly. Missile Command, World Class Bowling work perfectly. Unfortunately the games I really wanted to play i.e. Tehkan World Cup and Marble Madness play perfectly, but get screen tearing. Any Idea's on how to get round this issue? I don't really want to use switch res as the monitor controls are not that accessible to keep adjusting the monitor for different resolutions. Are the any versions of Mame that allow Vsync to work with a Trackball.
Title: Re: Trackball and Vsync (Mame)
Post by: Gray_Area on September 09, 2012, 07:14:22 pm
First, try a later version of MAME. I'm having no issue with .146 .

If problems persist: what MAME video display options are you running, and what kind of monitor?
Title: Re: Trackball and Vsync (Mame)
Post by: Andypc on September 10, 2012, 12:07:00 pm
Problem solved.  I disabled Multithreading and tried Vsync again and it works perfectly. It appears that if you have Multithreading and Vsync or Multithreading and Triple Buffering enabled at the same time it causes problems and lag with analog controls. Vsync or Multithreading on their own are fine, but not if enabled together. Multithreading is not essential as all the trackball games run full speed anyway. I am running version 0.141 of mame on a tri-sync arcade monitor.
Title: Re: Trackball and Vsync (Mame)
Post by: Gray_Area on September 12, 2012, 03:48:22 pm
Problem solved.  I disabled Multithreading and tried Vsync again and it works perfectly. It appears that if you have Multithreading and Vsync or Multithreading and Triple Buffering enabled at the same time it causes problems and lag with analog controls. Vsync or Multithreading on their own are fine, but not if enabled together. Multithreading is not essential as all the trackball games run full speed anyway. I am running version 0.141 of mame on a tri-sync arcade monitor.

Oh. I remember something like this coming up at MAMEWorld, perhaps around the time of 141, and that it was a default option, but has since been de-selected by default, possibly for the above-experienced issue.