Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Laggy controls in Groovymame 153 (help needed!)  (Read 2580 times)

0 Members and 1 Guest are viewing this topic.

markc74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 807
  • Last login:April 23, 2024, 11:38:06 pm
  • Flipping out
    • forum.arcadecontrols.com/index.php/topic,137295.0.html
Laggy controls in Groovymame 153 (help needed!)
« on: August 06, 2014, 01:22:35 pm »
Hi all - I'm having a problem with controls really lagging in groovymame 153 which I think is down to a config issue somewhere but nothing I try seems to sort it out so I'm hoping someone can help.

My setup is windows xp 64 bit running crt emudriver and connected to a scart tv (via scart cable) and an lcd marquee via hdmi.

The controls feel noticeably laggy in most games but especially in analog games like arkanoid.  Wierdly, if I switch to vanilla mame 153 then everything feels perfect again and there is no lag.

I did a search before I posted this and everything I found was related to the frame delay stuff which I'm pretty sure isn't the problem here.

Anyone have any ideas or things I should try? Any help gratefully received!


Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Laggy controls in Groovymame 153 (help needed!)
« Reply #1 on: August 06, 2014, 01:30:36 pm »
Try enabling -multithreading. Besides, increase -syncrefresh_tolerance to 4.0 or 5.0.

BTW your logs are not complete, use the -v option.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

markc74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 807
  • Last login:April 23, 2024, 11:38:06 pm
  • Flipping out
    • forum.arcadecontrols.com/index.php/topic,137295.0.html
Re: Laggy controls in Groovymame 153 (help needed!)
« Reply #2 on: August 06, 2014, 02:15:35 pm »
Thanks for the speedy response Calamity.

Unfortunately I'm not sure if it made much difference.

I've uploaded the proper logs this time.  I've included Shinobi which oddly seems not to lag at all if that helps?

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Laggy controls in Groovymame 153 (help needed!)
« Reply #3 on: August 06, 2014, 02:39:43 pm »
Some ideas:

1.- Use -video d3d
2.- Do not force a resolution on the lcd, or
3.- Disable the lcd just to test.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

markc74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 807
  • Last login:April 23, 2024, 11:38:06 pm
  • Flipping out
    • forum.arcadecontrols.com/index.php/topic,137295.0.html
Re: Laggy controls in Groovymame 153 (help needed!)
« Reply #4 on: August 12, 2014, 08:37:24 am »
Hi Calamity - Thanks for the reply.  Unfortunately I tried those things and they didn't seem to make a difference.

I did notice that when I was showing the FPS on vertical games I was getting a regular 98% and then a spike of 105% every second on games affected. Horizontal games seem to be working fine.

I went into the mame.ini file and changed the modeline to give me a higher vertical frequency. 16400 was the highest it would go before the screen started playing up and this took my FPS to between 99% and 103% and this *seemed* to reduce the lag.

It's definitely feels pretty nippy now - much better than it was so I'm pretty happy with it. I am still curious if this is something tied into my setup though as I don't remember noticing it before!

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Laggy controls in Groovymame 153 (help needed!)
« Reply #5 on: August 13, 2014, 06:07:27 pm »
Hi markc74,

It is strange that the speed is not constant and you get spikes, unless your using -frame_delay. If your monitor configuration doesn't allow you to get 100% speed for 256 lines games and above, the game will run slower due to vsync, but at a solid 97%, 98% or whatever. This may be "felt" as the controls being laggy, when it's simply the game running slower. Normal MAME has vsync off by default so you won't see this problem. If you enable -frame_delay in this situation it will make things even worse. I don't mean this is your case, just thinking aloud. If you're seeing genuine input lag, that's a different story. Running with -syncrefresh, -multithreading, -frame_delay, should perform the best on this regard, but this assumes you're achieving the -target refresh rate. Anyway, increasing the HfreqMax value in your particular case seems like the right approach to me.

Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

markc74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 807
  • Last login:April 23, 2024, 11:38:06 pm
  • Flipping out
    • forum.arcadecontrols.com/index.php/topic,137295.0.html
Re: Laggy controls in Groovymame 153 (help needed!)
« Reply #6 on: August 14, 2014, 03:56:01 pm »
Hi Calamity. That was what I expected. I'll do some further tweaking later and see what I can do. It *feels* more responsive at the moment but still not quite there.

One thing I was going to try was to rotate the vertical 256 games so see if that made them run at full frame rate and had an impact on the lag.


Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Laggy controls in Groovymame 153 (help needed!)
« Reply #7 on: August 16, 2014, 12:19:09 pm »
One thing I was going to try was to rotate the vertical 256 games so see if that made them run at full frame rate and had an impact on the lag.

Have you tried this already?
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

markc74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 807
  • Last login:April 23, 2024, 11:38:06 pm
  • Flipping out
    • forum.arcadecontrols.com/index.php/topic,137295.0.html
Re: Laggy controls in Groovymame 153 (help needed!)
« Reply #8 on: August 19, 2014, 08:46:29 am »
One thing I was going to try was to rotate the vertical 256 games so see if that made them run at full frame rate and had an impact on the lag.

Have you tried this already?

I haven't yet but was going to try it tomorrow evening. I've set aside a few (precious!) hours to get to the bottom of it. I was planning on start with fresh 154 build, new ini files etc and see where I get to.

markc74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 807
  • Last login:April 23, 2024, 11:38:06 pm
  • Flipping out
    • forum.arcadecontrols.com/index.php/topic,137295.0.html
Re: Laggy controls in Groovymame 153 (help needed!)
« Reply #9 on: September 08, 2014, 05:42:27 pm »
Got a bit of time today to spend on this - I haven't been able to remove the lag but I am at least convinced that it's definitely happening.

I started with a clean install of MAME 0.154. I then made a copy of that folder and installed Groovymame 154 in that one. I generated the mame.ini files for each version of MAME and then created a batch file which repeatedly ran the same rom in each version of MAME. (Vanilla vs groovy).

The LCD monitor wasn't connected during these tests.

I cant say for sure whether I'm getting lag in all games but if the game uses analog controls then it is definitely noticeable. Games like missile command and arkanoid were pretty bad with a noticeable delay and a floaty feeling (cursor would still move after letting go of the controls). This was not happening at all in regular MAME running the same rom.

To see if it was to do with the number of lines I was running I ran the horizontal game Cameltry which uses the spinner and the same problem was happening. So - I'm pretty much out of ideas now.

Any thing left worth trying?

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Laggy controls in Groovymame 153 (help needed!)
« Reply #10 on: September 08, 2014, 06:01:53 pm »
Are you testing against regular MAME *with* syncrefresh & waitvsync enabled?
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

markc74

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 807
  • Last login:April 23, 2024, 11:38:06 pm
  • Flipping out
    • forum.arcadecontrols.com/index.php/topic,137295.0.html
Re: Laggy controls in Groovymame 153 (help needed!)
« Reply #11 on: September 08, 2014, 06:19:46 pm »
Hi Calamity. No they're both set to '0'. I didn't change anything after I ran the -cc command.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7414
  • Last login:April 10, 2024, 02:02:31 pm
  • Quote me with care
Re: Laggy controls in Groovymame 153 (help needed!)
« Reply #12 on: September 08, 2014, 07:11:32 pm »
GM enables syncrefresh automatically. Regular MAME doesn't. So you need to enable it in regular MAME too get a fair test.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi