Build Your Own Arcade Controls Forum

Software Support => GroovyMAME => Topic started by: cfou! on March 14, 2022, 03:50:22 pm

Title: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: cfou! on March 14, 2022, 03:50:22 pm
Hi Girls & Guys,

I have been using groovymame for several years with my arcade machine and don't have any problems.

I have two boots:
- a boot for the PC connected to a Sony PAL/NTSC TV
- a boot for the PC connected to 2 monitors (Sony PAL/NTSC & LCD TV with display of goodies like marquees/CPanel/Bezels/...)

I've never had a problem and qll scrolling is smooth in game on both screens with the non-updated version installed:

My config:
-----------
Win7 x64 + Intel Core 2 Q9690 + 3GB +ATI Radeon 4800
Groovymame 0.182 +Switchres 0.00016
CRTemul Driver Tools beta8 & Catalyst 12.6

I wanted to update Groovymame with the latest version: groovymame_0241.002g_win-7-8-10

With a CRT screen, there is no problem but as soon as I use the '-numscreens 2' option
Groovymane lags a lot and the scrolling is no longer smooth.
What's weird about the verbose option
SwitchRes finds resolutions with a vertical frequency of 2000 Hz!!!

So I tested different versions with CRT + LCD (no problem with a single monitor)

 * with '-numscrees 2' + dual monitors CRT&LCD
- groovymame64_0227.017t_win-7-8-10 => works perfectly
- groovymame64_0227.001a_win-7-8-10_OK => works perfectly
- groovymame_0229.002a_win-7-8-10_ok => works perfectly
- groovymame_0232.002b_win-7-8-10_ok => works perfectly
- groovymame_0236.002c_win-7-8-10 =>works perfectly (a rare crash on launch on a black screen)
- groovymame_0237.002d_win-7-8-10 => huge lag with 2 monitors
- groovymame_0237.002e_win-7-8-10 => huge lag with 2 monitors
- groovymame_0238.002f_win-7-8-10 => huge lag with 2 monitors
 - groovymame_0239.002g_win-7-8-10 => huge lag with 2 monitors
- groovymame_0240.002g_win-7-8-10 => huge lag with 2 monitors
- groovymame_0241.002g_win-7-8-10 => huge lag with 2 monitors

Do you have any ideas to fix the problem?
Is this a bug introduced since SwitchRes 2.0002d?

best regards

Bertrand
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: Calamity on March 15, 2022, 10:40:25 am
Hi cfou,

Please, if possible, get me a log of GM 0.232 (last working) vs GM 0.241 (current). Hopefully this will help me figuring out the issue. I don't have a system with a legacy card installed that I can't test.
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: cfou! on March 15, 2022, 02:20:50 pm
Hi,

thanks for your answer ;)

attached  verbose files

3 Cases with same mame.ini

1) CRT & LCD GM 0.241 =>lag
2) CRT only    GM 0.241 =>smooth
3) CRT & LCD GM 0.232 =>smooth

Best regards,

Bertrand/CFou!
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: cfou! on March 17, 2022, 05:41:03 pm
Hi,

I tested some intermediate versions and they all work correctly without lag.
I also retested the other versions curiously I can no longer recreate the crash with the GM version 0.336.
with this version it's fluid and there is no lag.

My tests give this in summary:
 * with '-numscrees 2' + dual monitors CRT&LCD
- groovymame64_0227.017t_win-7-8-10 => works perfectly
- groovymame64_0227.001a_win-7-8-10_OK => works perfectly
- groovymame_0229.002a_win-7-8-10_ok => works perfectly
- groovymame_0232.002b_win-7-8-10_ok => works perfectly
- groovymame_0233.002b_win-7-8-10_ok => works perfectly
- groovymame_0234.002b_win-7-8-10_ok => works perfectly
- groovymame_0235.002b_win-7-8-10_ok => works perfectly
- groovymame_0236.002c_win-7-8-10_ok => works perfectly (rare crash on black screen)
- groovymame_0237.002d_win-7-8-10 => huge lag with 2 monitors
- groovymame_0237.002e_win-7-8-10 => huge lag with 2 monitors
- groovymame_0238.002f_win-7-8-10 => huge lag with 2 monitors
 - groovymame_0239.002g_win-7-8-10 => huge lag with 2 monitors
- groovymame_0240.002g_win-7-8-10 => huge lag with 2 monitors
- groovymame_0241.002g_win-7-8-10 => huge lag with 2 monitors

It is therefore between the version _0236.002c_ and the version _0237.002d that something has been modified which causes these lags with dual screens.

Ideas?
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: cfou! on March 18, 2022, 09:02:48 am
Hi,
logs files for last good version GW 0236 & RS 002c (smooth scrolling)
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: cfou! on March 18, 2022, 09:08:49 am
Hi,
logs files for first bad version GW 0237 & RS 002d (many lags expremely slow)
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: cfou! on March 21, 2022, 09:31:47 am
hi,
I did other cross tests...

I tested with mamex64 0.241 and 2 monitors (as GM configuration).
=>No video & sound lag
So there is definitely something broken with GW since version 0.237 with 2 screens:(:(

To be more precise it is a video lags and the sound is chopped and paused.

So I tried in several different drivers using the PORTAUDIO option (Windows WASAPI & Windows WDM-KS) and indicating the name of the device of my PC or disabling the AUDIOSYNC option but there are still many impotant lags (near 1 second of freeze) and sound issues since GW.


Have you idea for another tests?
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: Calamity on March 21, 2022, 03:26:48 pm
cfou,

Thanks for reporting this. I might have been able to reproduce it on one of my systems. Will try to find a fix, please be patient.
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: cfou! on March 21, 2022, 04:54:53 pm
>Thanks for reporting this. I might have been able to reproduce it on one of my systems. Will try to find a fix, please be patient.

no worries, I will obviously wait ;) thank you for worrying about my problem.
It is difficult to explain this problem in fact the sound and the video seems slow down together regularly.
Below is a link to a video showing the problem:
https://youtu.be/lIjIZoU1pVo
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: Calamity on March 23, 2022, 08:20:22 am
cfou,

I can't reproduce the problem any more appearently.

Could you try enabling -modeline_generation in mame.ini? You probably disabled it on purpose, but I'd like to discard that.
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: cfou! on March 23, 2022, 12:52:24 pm
Hi Calamity,

First, thank you for your tests & response.

Unfortunately, I had already tested with and without the -modeline_generation command line option (or modeline_generation 0 or 1 in mame.ini).

I try all sync_mode to compare also without success...

Since GM0.137 I always get regular sound and scroll slowdown with the -numscreens 2 option (the result is perfect with -numscreens 1 or with older versions of GW)

best regards,
Bertrand/CFou!
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: cfou! on March 23, 2022, 02:45:56 pm
attached my currrent mame.ini

it might help...
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: cfou! on March 26, 2022, 06:37:32 pm
Hi Calamity,

I am done another test:

i am just installing clean configuration with dual monitors and have sound/video slowdown too....

indeed i am just installing an new Win7 X64 ultimate & GW:
Win7 x64 ultimate+I5+8GoDDR3 + Ati radeon 5450 (1Go)
+ CRT Emudriver & CRT Tools 2.0 beta 15 (Crimson 16.2.1 non-GCN* cards) for Windows 7/8/10 64-bits

I have again sound/video slow down like my old configuration:
Win7 x64 + Intel Core 2 Q9690 + 3GB +ATI Radeon 4800
+ CRT Emudriver & CRT Tools 2.0 beta 15 (Catalyst 12.6) for Windows 7/8/10 64-bits

So problem must by with GW since 0.237 :(

Have you some test idea?

Best regards,
Bertrand
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: cfou! on March 27, 2022, 06:38:18 am
hi,

Solution are found for both PC configurations.

I have just:
1) delete "mame.ini"
2) generate new mame.ini with command "mame -cc"
3) Export monitor setting to groovymame via VMMaker

It's curious, I thought I had already done it but I must have made a mistake...

There must have been an obsolete option in my "mame.ini" file that was causing a disturbance...

sorry for the inconvenience...

Best regard,
Bertrand

 PS: "orientation" option is great now with motorized CRT !!!

Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: Calamity on March 27, 2022, 05:49:21 pm
Maybe it was the -syncrefresh option in mame.ini, I'm seeing it in your old ini.

Having it forced enabled probably made it apply on the second screen. Only the main screen should have syncrefresh enabled. That is the behaviour when syncrefresh is left disabled in mame.ini and -autosync is enabled instead.
Title: Re: Lag with 2 monitors since groovymame_0236.002c & 2d (not with only one CRT)?
Post by: cfou! on March 28, 2022, 06:19:44 pm
hi,
I try forcing syncrefrech option but there are no lag.

attached good mame.ini

regards,

ps:
i use modeline_generation       0 in mame.ini
but i use -modeline_generation option when i launch mame via CMD file