Main > Main Forum

Regarding Input/Video/Other Lag in MAME

Pages: << < (2/3) > >>

adder:

equilzer could u be persuaded to do the test below, and report back if your lag is more than 4 frames?
____________________________________________________________________
the following test:

- launched mame, loaded galaga'88
- inserted coins, started a game
- held down the right arrow key on my keyboard to begin to move the ship to the right
- without letting go of the right arrow key, i pressed once the 'P' (pause) button on my keyboard
- now i let go of the right arrow key
- next i held down the left arrow key AND the shift key together
- finally, while continuing to hold down the left arrow key and the shift key, i tapped the 'P' (pause) button on my keyboard several times (to now advance the game one frame at a time)

what happens is, the ship in galaga'88 continues to move across the screen to the right another 4 frames, after you have pressed the left arrow key on your keyboard.....
________________________________________________________

rCadeGaming:

I've got different PC's and video equipment torn apart, and unfortunately I'm up to my neck in work for the time.  So, I'm sorry but I'm not able to properly test things right now.

As I've said, I don't think there's any way for triple buffer to be working and not add lag.  So if there's really nothing else going on, you've found a problem with the frame step method.

When I get things straightened in the future I'll test it with the high speed camera method to measure the lag in real time, and see what's really going on.


adder:


--- Quote ---...I did your test on: Terra Cresta - No lag
--- End quote ---

cool, i just did the terra cresta test also and noticed no lag also


--- Quote ---.....with the game paused the OS and mame have all the time to catch up... ditto for the TV or monitor display buffer.
--- End quote ---

thats what i have been thinking too, maybe the test is invalid. in which case im wondering which video sync effect in mame (triple buffer, vsync, syncrefresh) adds the least amount of 'lag'.. or if its just a dumb question overall and not worth worrying about! ::)

adder:


--- Quote from: rCadeGaming ---I'm sorry but I'm not able to properly test things right now.

--- End quote ---

no worries at all


--- Quote from: rCadeGaming ---When I get things straightened in the future I'll test it with the high speed camera method to measure the lag in real time, and see what's really going on.

--- End quote ---

awesome, im all ears if you come up with some interesting results ;)

rCadeGaming:


--- Quote from: jadder on December 04, 2012, 06:35:48 pm ---im wondering which video sync effect in mame (triple buffer, vsync, syncrefresh) adds the least amount of 'lag'.. or if its just a dumb question overall and not worth worrying about! ::)

--- End quote ---


--- Quote from: rCadeGaming on December 03, 2012, 02:16:04 pm ---Yeah, you shouldn't be picking a refresh rate and trying to force the game to it.  You should be adjusting the output refresh rate to that of the original game.  Doing this and using -syncrefresh will be the way to ensure the game is running at original speed, without sound issues (soundsync not needed), scrolling smoothly without -waitvsync and -triplebuffer (which cause lag) and without frameskipping.
--- End quote ---

Not a dumb question.  This is especially important with your SCART TV setup ^.  You should be getting native resolutions on that thing and running in proper refresh rates.

As for LCD's, you can't usually adjust refresh rates to use this method, so it's a different situation.  You can still use syncrefresh and force the game to 60Hz, but then you'll be off from the original speed depending on the native refresh, and you may need autoframeskip to alleviate audio stuttering may not work (actually I'm not sure if autoframeskip would work in this case).  Instead you could use waitvsync, which technically causes some lag, but should normally be much less than triple buffer.  Just more of the problems with LCD's, they lag in the first place, and then you can't use proper video settings with them.

Pages: << < (2/3) > >>

Go to full version