The NEW Build Your Own Arcade Controls

Software Support => GroovyMAME => Topic started by: dirtythekid on July 09, 2017, 06:11:19 am

Title: GroovyMAME running at half speed when playing interlaced resolutions
Post by: dirtythekid on July 09, 2017, 06:11:19 am
Is there any way to fix this? Everything works flawlessly aside from this one hiccup that's unfortunately preventing me from playing some of my favorite games. I've read something about changing a polarity value in monitor.ini, but that made my PVM freak out.

Software: Windows 7 x64, GoovyMAME 0.186, CRT Emudriver 2.0 beta 10
Hardware: AMD FX-4100 w/ HD3000 onboard graphics

Thanks.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: haynor666 on July 09, 2017, 01:42:32 pm
If positive polarity is a problem I suggest to buy new radeon from HD5xxx serie or newer.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: dirtythekid on July 09, 2017, 04:11:15 pm
I have a 4670 that I'll try the positive polarity with, but I'd like to avoid buying a new card if possible. Is there really no other way within software to do this? Retroarch runs the game at normal speed, but I'd like to continue to use GroovyMAME and avoid creating a custom config for every MAME game I play.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: dirtythekid on July 10, 2017, 02:16:02 am
No luck with the 4670 unfortunately. I priced some of the newer (albeit less powerful) Radeon cards and they're really cheap, but before I buy one I'd like to confirm that there's no other way to fix this problem and that the polarity change is really what I'm looking for.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: krick on July 10, 2017, 10:08:47 am
You've never said what kind of monitor you are using...  arcade CRT, LCD, VGA CRT, NTSC TV, etc...

Also, you say "everything works flawlessly" but then mention "one hiccup" without ever saying what it is.

Please be more specific.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: dirtythekid on July 10, 2017, 10:33:43 am
I said I was using a PVM (Sony TV, I figured most 15khz users would know that) in the first post, and the problem is listed in the title. I thought that was enough clarification.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: krick on July 10, 2017, 11:09:31 am
Sorry, I don't think I was fully awake before I made my post.  Ignore me.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: dirtythekid on July 10, 2017, 08:26:25 pm
Lol no worries, just looking for some help.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: dirtythekid on July 25, 2017, 07:48:12 am
Just an update for anyone having similar issues, I upgraded my on-board graphics (HD 3000) to a Radeon HD 6450 and it fixed it right up. I guess the older cards just don't handle the interlaced display modes properly. Had some odd installation hitches which I think had to do with existing driver installations, but all is good now. If I had to do it again, I'd probably pay a (very) little more and get a 5570 which is a good bit more powerful if I ever need it, but most emulators are more reliant on CPU power so the 6450 does just fine.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: haynor666 on July 25, 2017, 07:56:59 am
Just an update for anyone having similar issues, I upgraded my on-board graphics (HD 3000) to a Radeon HD 6450 and it fixed it right up. I guess the older cards just don't handle the interlaced display modes properly. Had some odd installation hitches which I think had to do with existing driver installations, but all is good now. If I had to do it again, I'd probably pay a (very) little more and get a 5570 which is a good bit more powerful if I ever need it, but most emulators are more reliant on CPU power so the 6450 does just fine.

That's right but this was mentioned many times - card from 5xxx serie and newer does not have problems with halved speed with interlaced resolutions.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: dirtythekid on July 25, 2017, 08:50:34 am
Dug around quite a bit, didn't see it mentioned aside from your reply. Even the documentation that I've read doesn't touch on it specifically. Just documenting my experience in case anyone else has this problem.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: haynor666 on July 25, 2017, 12:45:30 pm
http://forum.arcadecontrols.com/index.php?action=search2;params=eJwtjsEOgzAMQ39l2mUXH2ibFPY1qLSR2NQBKoxpUj9-YeLmvNiyQ9rDFCXVW23qtQ7lUAbOwnpwCwd3B4HBDNPAOBgLw7BgDw_LcB1aEMHpV60GpFlNEMjBtrB32A7EIA9SZwc2YM132reO86eP82vJsok2H-g9PCVu_Tzl70nmsqkqkuU_9kR9ehTFSdZ4EAkljnqPIe-SLusikn7XCUMJ (http://forum.arcadecontrols.com/index.php?action=search2;params=eJwtjsEOgzAMQ39l2mUXH2ibFPY1qLSR2NQBKoxpUj9-YeLmvNiyQ9rDFCXVW23qtQ7lUAbOwnpwCwd3B4HBDNPAOBgLw7BgDw_LcB1aEMHpV60GpFlNEMjBtrB32A7EIA9SZwc2YM132reO86eP82vJsok2H-g9PCVu_Tzl70nmsqkqkuU_9kR9ehTFSdZ4EAkljnqPIe-SLusikn7XCUMJ)
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: dirtythekid on July 25, 2017, 06:18:32 pm
I know how to search. Most of those results don't address the card upgrade as a fix. I would hardly call that "many times". Thanks for that helpful info though.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: Doozer on August 10, 2017, 02:48:08 pm

That's right but this was mentioned many times - card from 5xxx serie and newer does not have problems with halved speed with interlaced resolutions.

Just some info for people having this issue and looking to upgrade to 5xxx.

I do have 5450 Cedar and Caicos having issues with half speed in interlaced mode. Even low end 6450 and 7450 can have this issue.

[AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series], ATOM BIOS: C09302 -> half speed issue
[AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series], ATOM BIOS: 13 -> working perfectly
[AMD/ATI] Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM] , ATOM BIOS: GV -> half speed issue

It really depends on the bios version but version number is a bit cryptic.

No workaround for Linux users at the moment. Setting frame_delay or positive sync does not help.

Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: Calamity on August 11, 2017, 12:43:28 pm
Just some info for people having this issue and looking to upgrade to 5xxx.

I do have 5450 Cedar and Caicos having issues with half speed in interlaced mode. Even low end 6450 and 7450 can have this issue.

[AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series], ATOM BIOS: C09302 -> half speed issue
[AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series], ATOM BIOS: 13 -> working perfectly
[AMD/ATI] Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM] , ATOM BIOS: GV -> half speed issue

It really depends on the bios version but version number is a bit cryptic.

No workaround for Linux users at the moment. Setting frame_delay or positive sync does not help.

You certanly shouldn't be seeing that on Linux, since we're using vsync by drm. In Windows it's different because unless you enable frame_delay, vsync is managed through Direct3D which has this problem with pre-5000 cards.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: Doozer on August 12, 2017, 01:08:59 pm
You certanly shouldn't be seeing that on Linux, since we're using vsync by drm. In Windows it's different because unless you enable frame_delay, vsync is managed through Direct3D which has this problem with pre-5000 cards.

I am under Linux and the interlaced 50% speed issue exists (since...??? after 15l/m for sure). The reason is simple, the vblank event is only set after the odd frames for interlaced resolution. This choice has been taken to have a full picture (even+odd) before doing the page flip. I looked to see if it was possible to have a vblank for both frames but I am at the moment desperately unlucky.

PS: My 2nd line was a false positive due to a multi-sync monitor able to have high progressive resolution.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: Calamity on August 13, 2017, 04:16:21 am
If we have a chance, try latest GA. A few months ago when Ves was building it he sent me logs of interlaced gamed and they run at 100% once drm was properly initialized.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: Doozer on August 13, 2017, 04:36:39 am
If we have a chance, try latest GA. A few months ago when Ves was building it he sent me logs of interlaced gamed and they run at 100% once drm was properly initialized.

I will do.

Check also you email, I have investigated the drm/kms situation and hw interrupt processing in last kernel 4.12.6.

If you and Ves are right, it means that drm behaviour changed recently. Now, we have to either stick to a working kernel (which one) or work with the new situation and drm_next framework.
Title: Re: GroovyMAME running at half speed when playing interlaced resolutions
Post by: Doozer on August 15, 2017, 04:57:05 am
Problem with Linux DRM is confirmed. (I have tested GroovyArcade kernel and the issue is also present)

The kernel's DRM irq handler only fire the VBLANK event when the full frame is drawn. In case of interlaced content, the VBLANK event is discarded between the two half frame.

Similar issue is referenced in this thread about vblanks https://www.spinics.net/lists/linux-samsung-soc/msg57798.html (https://www.spinics.net/lists/linux-samsung-soc/msg57798.html)

No final solution exists at this time. DRM next and kernel 4.13 have a completely new code to be tested.