Main > Software Forum
My official MAME output wip thread.
bdam:
I just played with it some more and part of the problem seems to be that MAME attempts to get exclusive access to the device. From what I can tell, that means any other program that needs exclusive access, which you need for FFB, will need to un-acquire, acquire exclusively again, and re-download the effect anytime it wants to make start or change an effect on the device. That three step process created stuttering; at least for me. If I change src\osd\windows\input.c so that MAME acquires non-exclusive access this problem goes away, you don't need to reacquire, and things work well. Except for one thing; MAME start complaining that it is 'Unable to create the Direct3D device (88760868)'. Everything seemed to work fine ... it just complained.
Maybe this is all piss in the wind, you know this, and have a solution.
Howard_Casto:
We'll just have to see. I know that outrun was pretty responsive, but then again the resolution of the ff in outrun is pretty low. Like I said... the trick is you never start/stop the effect.... you leave it running. A ff effect with a magnitude of 0 doesn't do anything, so it's essentially the same as turning it off.
Mame shouldn't be aquiring in exclusive mode.... at least it didn't before because I specifically complained that there's no reason for mame to need exclusive mode and it causes issues for other apps. I haven't looked it it in quite some time though.
But enough shop talk. I've got a pinball wrapper to finish and the next thing on the agenda is mamehooker.
bdam:
Yep, it works smoothly as long as it doesn't loose exclusive access which is most definitely is:
http://mamedev.org/source/src/osd/windows/input.c.html - line 1510
--- Code: ---DWORD cooperative_level = DISCL_FOREGROUND | DISCL_EXCLUSIVE;
--- End code ---
MAME gets non-exclusive access to the mouse and keyboard but the joysticks are exclusive. I'll mention it on mameworld and see if anyone speaks up.
baritonomarchetto:
EDIT: just seen that the code i was asking for is (bdam work) is still attached :timebomb: :)
yellowmustard:
interesting!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version