MAME input lag fixed?

This is the main shmups forum. Chat about shmups in here - keep it on-topic please!
User avatar
KNTain
Posts: 153
Joined: Sun Jun 03, 2007 11:29 pm

MAME input lag fixed?

Post by KNTain »

I remember discussion lately about MAME having some lag in certain games after .99. It looks like it has been fixed as of 123u5; I just tested DoDonPachi and Battle Bakraid, and while I got 1-2 frames of lag in MameUI32 122u6, 123u5 doesn't have any. Going by step-pause and said games' input test menus.
User avatar
indstr
Posts: 802
Joined: Mon Oct 29, 2007 4:27 pm
Contact:

Post by indstr »

too bad it probably still uses directinput
User avatar
KNTain
Posts: 153
Joined: Sun Jun 03, 2007 11:29 pm

Post by KNTain »

Educate me.
User avatar
indstr
Posts: 802
Joined: Mon Oct 29, 2007 4:27 pm
Contact:

Post by indstr »

mmm, to the best of my knowledge (although i am not infallable), mame versions after around .116 have a "feature" called directinput, that cannot be disabled. it means programs like Xpadder which map game controller keys to keyboard keys no longer work, because MAME is somehow looking for input only from the physical PCB on the keyboard through the ps2 port.

so for example, i have a custom setup where i use ppjoykey to emulate a gamepad, and then use xpadder to emulate a keyboard with the emulated gamepad... (stay with me here). it allows me to do crazy shit like map my D key to the Z key to make doujin's more comfortable to play, but i've also recently setup autofire with it, making autofire work with any game, even ones that don't support it. including MAME. i tried messing with mame's autofire functions one time and didn't really figure it out

okok, i know that mame itself has joystick support, but i had trouble with that too

anyway, i figure this also impacts people who have some kind of custom joystick rig. maybe not?

anyway, i downloaded version 0.114 just so i could avoid this issue
User avatar
Zebra Airforce
Posts: 1695
Joined: Mon Aug 13, 2007 9:10 pm

Post by Zebra Airforce »

Here's my question: What version doesn't have crappy lag, sound errors, and stuttering? I just want a version of mame that doesn't suck :?
Image
Iori Branford
Posts: 328
Joined: Sat Apr 15, 2006 5:47 am
Contact:

Post by Iori Branford »

Zebra Airforce wrote:Here's my question: What version doesn't have crappy lag, sound errors, and stuttering? I just want a version of mame that doesn't suck :?
Version Final Burn Alpha. At least, it has Cave, CPS2, Raizing and 8ing.

Only trouble is, if vsync is your thing, I hope you like config file digging.
User avatar
Zebra Airforce
Posts: 1695
Joined: Mon Aug 13, 2007 9:10 pm

Post by Zebra Airforce »

No Seibu? If it can't play RFJ then there really isn't much reason for me to get it, as that's the main draw of MAME for me.
Image
User avatar
indstr
Posts: 802
Joined: Mon Oct 29, 2007 4:27 pm
Contact:

Post by indstr »

Iori Branford wrote: Only trouble is, if vsync is your thing, I hope you like config file digging.
i used fba for a while. forcing vsync in nvidia drivers does the trick for everything
User avatar
doodude
Posts: 597
Joined: Sat Dec 15, 2007 3:01 pm
Location: Living in the dreaded USA & lovin' it!
Contact:

Post by doodude »

Im afraid I dont know WTF most of what any thing thats been said on this post even means! :?

I had such a problem getting MAME to work that when I ran across ExtraMAME I just gave up & stayed with it.

http://www.godlikedevelopers.com/extramame/

Extra MAME takes all the guess work out, has thousands's of games including a butt load of Shmups & runs smoothly with no lag of any kind that I can detect.

Ive run across post's that explain how to setup MAME & plan to have another go at it but I just havent had the time or the need...
Truth, is in the Mind of the Beholder...
Image
User avatar
Ed Oscuro
Posts: 18654
Joined: Thu Dec 08, 2005 4:13 pm
Location: uoıʇɐɹnƃıɟuoɔ ɯǝʇsʎs

Post by Ed Oscuro »

doodude wrote:has thousands's of games including a butt load of Shmups & runs smoothly with no lag of any kind that I can detect.
Sounds like the regular MAME.

I use MAMEUI myself (formerly MAME32), find that here:

http://mameui.classicgaming.gamespy.com/
User avatar
Dandy J
Posts: 726
Joined: Fri Feb 25, 2005 6:02 am

Post by Dandy J »

I thought MAME stopped using directinput, hence why the option to turn it off went away. I'm pretty sure there's a post by Aaron Giles about how they stopped using it somewhere.

Off to test this release...
<BEOWOOF> my lifes like battle garegga every time i kill man life becomes harder and the only solution to making things easier is killing ymself.
<SCRUNBABBY> my lifes like gwangs
<SCRUNBABBY> cause .. theres lots of wangs
User avatar
unsane
Posts: 662
Joined: Sun Oct 28, 2007 3:02 pm
Location: BC, Canada
Contact:

Post by unsane »

This is good news. I like to use the most recent version of programs but i've been getting sick of noticeable input lag in Battle Bakraid and APB.
User avatar
Dandy J
Posts: 726
Joined: Fri Feb 25, 2005 6:02 am

Post by Dandy J »

Yep it's fixed. Reacts on the 3rd frame for me in APB. The extra frame of lag may be due to the game itself. Much better than 4 or 5 though (or 6 in some extreme cases lmao).
<BEOWOOF> my lifes like battle garegga every time i kill man life becomes harder and the only solution to making things easier is killing ymself.
<SCRUNBABBY> my lifes like gwangs
<SCRUNBABBY> cause .. theres lots of wangs
User avatar
doodude
Posts: 597
Joined: Sat Dec 15, 2007 3:01 pm
Location: Living in the dreaded USA & lovin' it!
Contact:

Post by doodude »

Ed Oscuro wrote:
doodude wrote:has thousands's of games including a butt load of Shmups & runs smoothly with no lag of any kind that I can detect.
Sounds like the regular MAME.

I use MAMEUI myself (formerly MAME32), find that here:

http://mameui.classicgaming.gamespy.com/
I set up this MameUI & its working fine.

MameUI supports over 6000 games, most of which Ive never heard of, compared to the more than 3500 games supported by Extra Mame.
Winner: MameUI

Extra Mame actually finds & loads the dowload page of the ROM you want leaving you to simply click download, usually from __________, while with MameUI you have to find the ROM yourself. Usually at __________. :lol:
Winner: Extra Mame

Having looked at & used both now I still prefer Extra Mame over MameUI.
Probably because Im used to Extra Mame & I like the interface more.
But I will keep using both & hunt thru MameUI for games that Extra Mame dosent support & play them there.
Winner: Me!

Thanks Ed O for the link... :wink:

If you try Extra Mame, let me know what you think of it. Just curious...

Mod edit - removed ROM site reference
Truth, is in the Mind of the Beholder...
Image
User avatar
KNTain
Posts: 153
Joined: Sun Jun 03, 2007 11:29 pm

Post by KNTain »

Yep it's fixed. Reacts on the 3rd frame for me in APB. The extra frame of lag may be due to the game itself. Much better than 4 or 5 though (or 6 in some extreme cases lmao).
Yeah, I think that's definitely the case. It acts the same way for me when it comes to ship movement (and in .99, as well), but it reacts on the very first advance in a lot of the service menus.
User avatar
indstr
Posts: 802
Joined: Mon Oct 29, 2007 4:27 pm
Contact:

Post by indstr »

Dandy J wrote:I thought MAME stopped using directinput, hence why the option to turn it off went away. I'm pretty sure there's a post by Aaron Giles about how they stopped using it somewhere.

Off to test this release...
neat, i'll have to try it as well
User avatar
Enhasa
Posts: 898
Joined: Sun Jul 29, 2007 5:13 am

Post by Enhasa »

indstr wrote:mmm, to the best of my knowledge (although i am not infallable), mame versions after around .116 have a "feature" called directinput, that cannot be disabled. it means programs like Xpadder which map game controller keys to keyboard keys no longer work, because MAME is somehow looking for input only from the physical PCB on the keyboard through the ps2 port.
Are you sure about this? First off, directinput is part of directx (which is ubiquitous) just so you know, it's not some strange evil or something. I use .117 myself and on the occasion where I want to do something tricky with MAME (like automate a secret character select), xpadder works just fine. It works fine either by itself or as a combination of MAME joystick support + xpadder on top of that.

Instead of doing your weird ppjoykey/xpadder hack, I think the best solution is just to use autohotkey. Also MAME autofire is really simple. Just go to the menu, select autofire, select the button you want, and hit right to move it from "off" to "on".

I'm sorry if this comes off negatively, it's not, I just want to let you know there are "better" ways to do what you're doing, but if this works for you, whatever.
"I think happiness is just being able to loaf without stress."

http://speeddemosarchive.com/
User avatar
nimitz
Posts: 900
Joined: Thu Jan 10, 2008 5:05 am
Location: Québec

Post by nimitz »

Well, up until recently the "best" version or the one with the least input lag was wolfmame 0.101 (got that from MARP, and with some testing this seems true)

but what you are saying is that mame 0.123u5 is better or as good as 0.101?

edit: look what i found in the mame 123u5 whatsnew log
Aaron Giles wrote:Removed cpu_scalebyfcount(). Changed input ports to register a frame
callback, which is called immediately after throttling and updating.
This is the proper "sync point" between emulated time and real time.
Moved all analog and digital port processing into a central place
here. Added tracking of time since the previous frame update and use
that as an estimate for the time of the current frame. This is used
to scale analog ports without the use of cpu_scalebyfcount(). This
is not perfect in the case where frame rates are dynamic (vector
games), but works well for other cases. [Aaron Giles]
User avatar
KNTain
Posts: 153
Joined: Sun Jun 03, 2007 11:29 pm

Post by KNTain »

That's exactly what prompted me to try it out.
User avatar
nimitz
Posts: 900
Joined: Thu Jan 10, 2008 5:05 am
Location: Québec

Post by nimitz »

Well that looks interesting, but I don't feel like building mame from source. So I'll wait for the next release (0.124)
User avatar
Ed Oscuro
Posts: 18654
Joined: Thu Dec 08, 2005 4:13 pm
Location: uoıʇɐɹnƃıɟuoɔ ɯǝʇsʎs

Post by Ed Oscuro »

Hmm, that seems very nice!

You don't need to build MAME from source (unless you use teh Lunix); just check out MAMEUI.
User avatar
nimitz
Posts: 900
Joined: Thu Jan 10, 2008 5:05 am
Location: Québec

Post by nimitz »

MAMEUI/MAME32 loads slower than Vista on a 486DX
User avatar
Twiddle
Posts: 5012
Joined: Sat Feb 18, 2006 11:28 pm
Contact:

Post by Twiddle »

also a bunch of crashes that are suspiciously absent from plus, one which mamedev does not want you to use ever
so long and tanks for all the spacefish
unban shw
<Megalixir> now that i know garegga is faggot central i can disregard it entirely
<Megalixir> i'm stuck in a hobby with gays
User avatar
doodude
Posts: 597
Joined: Sat Dec 15, 2007 3:01 pm
Location: Living in the dreaded USA & lovin' it!
Contact:

Post by doodude »

At the risk of repeating myself, EXTRA MAME is free, no set up, easy to use, finds your ROMs for you, no lags, very small, no stems, no seeds etc etc etc...

http://www.godlikedevelopers.com/extramame/

Try it, youll like it. :wink:
Truth, is in the Mind of the Beholder...
Image
User avatar
roker
Posts: 587
Joined: Thu Feb 17, 2005 4:13 am
Location: Detroit

Post by roker »

what's a good mamerz for mac?

I haven't played APB or Bakraid because of the input lag on mac mame as well
"something witty."
by someone witty
User avatar
ReKleSS
Posts: 420
Joined: Sat Sep 03, 2005 1:38 am

Post by ReKleSS »

Dandy J wrote:Yep it's fixed. Reacts on the 3rd frame for me in APB. The extra frame of lag may be due to the game itself. Much better than 4 or 5 though (or 6 in some extreme cases lmao).
Regarding the frame advance method of checking for lag, it always shows one frame higher than it actually is. Due to the point where the pause is handled, the input for the frame before is taken before the pause, and the update is shown after. Or something, it's been a while since I looked into it. I managed to fix it, at the cost of DDP running at 66% on my Q6600...

Btw, P48: The Freedom Fighters has the least lag of anything I've tried. Good for checking lag.

Edit: That would be p47, not p48. And even that single frame is gone is 123u5.
弾もまたいで通る
User avatar
Zaarock
Posts: 1883
Joined: Mon Nov 07, 2005 4:18 pm
Location: Finland

Post by Zaarock »

roker wrote:what's a good mamerz for mac?

I haven't played APB or Bakraid because of the input lag on mac mame as well
mameosx, macmame died years ago. I used to use SDLmame before I started using mameosx and the latter is better in a few ways.
It can use effects in OSX itself such as core image and core video which run pretty damn well, and you can have audio effects like echo.. only problem I've had so far is I cant find options for autofire.

Dont know much about the input lag, maybe someone else can check it out?
User avatar
roker
Posts: 587
Joined: Thu Feb 17, 2005 4:13 am
Location: Detroit

Post by roker »

Zaarock wrote:
roker wrote:what's a good mamerz for mac?

I haven't played APB or Bakraid because of the input lag on mac mame as well
mameosx, macmame died years ago. I used to use SDLmame before I started using mameosx and the latter is better in a few ways.
It can use effects in OSX itself such as core image and core video which run pretty damn well, and you can have audio effects like echo.. only problem I've had so far is I cant find options for autofire.

Dont know much about the input lag, maybe someone else can check it out?
ha

I might be waiting for a while

maybe I should setup bootcamp
"something witty."
by someone witty
User avatar
nZero
Posts: 2608
Joined: Wed Jan 26, 2005 1:20 am
Location: DC Area
Contact:

Post by nZero »

doodude wrote:At the risk of repeating myself, EXTRA MAME is free, no set up, easy to use, finds your ROMs for you, no lags, very small, no stems, no seeds etc etc etc...
It's also only a user-interface frontend to official MAME, and as such has no effect on input lag and therefore next to zero relevance to the topic being discussed.
Image
User avatar
doodude
Posts: 597
Joined: Sat Dec 15, 2007 3:01 pm
Location: Living in the dreaded USA & lovin' it!
Contact:

Post by doodude »

nZero wrote:
doodude wrote:At the risk of repeating myself, EXTRA MAME is free, no set up, easy to use, finds your ROMs for you, no lags, very small, no stems, no seeds etc etc etc...
It's also only a user-interface frontend to official MAME, and as such has no effect on input lag and therefore next to zero relevance to the topic being discussed.
Whew, Im glad we got that cleared up anyway! :wink:
Truth, is in the Mind of the Beholder...
Image
Post Reply