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: Best frame_delay setting vs computer speed  (Read 4163 times)

0 Members and 1 Guest are viewing this topic.

Tzakiel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 272
  • Last login:March 02, 2019, 12:59:01 pm
  • I want to build my own arcade controls!
Best frame_delay setting vs computer speed
« on: February 03, 2017, 12:47:29 am »
I have done some searching and reading on this but am just a bit confused. I know what frame_delay does and all, but I am just not sure what the right number is to set it to. I've seen people suggest 1, 3, 5 or even 8 depending on how fast the computer running groovymame is. I read one thread where someone suggested checking the unthrottled speed and then diving that by 250 to get the right frame_delay number.  The problem is, some of my games run at 150% or 200%, and others run at 900%+. So how is that supposed to be calculated if games run a wide variety of unthrottled speeds? It's a 4ghz machine running XP, pretty quick.
My Fighter CRT Cabinet Thread: Tzakiel's 2P Cabinet

Tzakiel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 272
  • Last login:March 02, 2019, 12:59:01 pm
  • I want to build my own arcade controls!
Re: Best frame_delay setting vs computer speed
« Reply #1 on: February 03, 2017, 01:40:34 am »
Ok. I did some testing on some demanding games and I found that anything over "2" caused slowdown. So now I know that. I assume I could do this game by game or driver by driver to optimize if I wanted. My next question is, should I enable multi threading or not? And should I enable triple buffer? My goal is to get as little input lag as possible and still run 100% speed. I am especially trying to optimize for bullet hell games.
My Fighter CRT Cabinet Thread: Tzakiel's 2P Cabinet

big10p

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 698
  • Last login:May 01, 2023, 01:46:23 pm
  • Mmmm, arcade classics!
Re: Best frame_delay setting vs computer speed
« Reply #2 on: February 03, 2017, 08:08:05 am »
Yes, you need to set frame delay on a per game basis. I use an ASIO build of GM which not only does a great job of cutting sound lag, it has built-in bench-marking to find the best frame delay to use for a specific game.

Tzakiel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 272
  • Last login:March 02, 2019, 12:59:01 pm
  • I want to build my own arcade controls!
Re: Best frame_delay setting vs computer speed
« Reply #3 on: February 03, 2017, 12:02:37 pm »
Yes, you need to set frame delay on a per game basis. I use an ASIO build of GM which not only does a great job of cutting sound lag, it has built-in bench-marking to find the best frame delay to use for a specific game.

Can you send a link or more info on that?
My Fighter CRT Cabinet Thread: Tzakiel's 2P Cabinet

big10p

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 698
  • Last login:May 01, 2023, 01:46:23 pm
  • Mmmm, arcade classics!
Re: Best frame_delay setting vs computer speed
« Reply #4 on: February 03, 2017, 01:16:16 pm »
Yes, you need to set frame delay on a per game basis. I use an ASIO build of GM which not only does a great job of cutting sound lag, it has built-in bench-marking to find the best frame delay to use for a specific game.

Can you send a link or more info on that?
https://forum.arcadecontrols.com/index.php/topic,142143.0.html

Tzakiel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 272
  • Last login:March 02, 2019, 12:59:01 pm
  • I want to build my own arcade controls!
Re: Best frame_delay setting vs computer speed
« Reply #5 on: February 03, 2017, 01:27:41 pm »
Prety neat, thanks. In an ideal world, it would be awesome to turn on some sort of auto frame delay setting that just adjusts as it should for each game, on the fly or just once, as part of the GM code. Probably more complicated than it sounds, but one can dream.
My Fighter CRT Cabinet Thread: Tzakiel's 2P Cabinet

maiki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 64
  • Last login:April 22, 2019, 05:51:29 pm
Re: Best frame_delay setting vs computer speed
« Reply #6 on: February 04, 2017, 09:47:29 am »
I am not into this but isn't using Windows itself the wrong way? For years and years the only good choice to run Advance MAME was either DOS or appropriate Linux, to avoid all those timing problems, VSYNC and all that. Times may have changed but I would still bet on clean Linux OS (Groovy) without all that nasty stuff that Windows wil give you.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: Best frame_delay setting vs computer speed
« Reply #7 on: February 04, 2017, 10:35:56 am »
I am not into this but isn't using Windows itself the wrong way? For years and years the only good choice to run Advance MAME was either DOS or appropriate Linux, to avoid all those timing problems, VSYNC and all that. Times may have changed but I would still bet on clean Linux OS (Groovy) without all that nasty stuff that Windows wil give you.

That sounds reasonable and it's a general belief. But it's wrong. At least, all experimental evidence shows a clear advantage for Windows.
« Last Edit: February 04, 2017, 10:41:21 am by Calamity »
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

Tzakiel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 272
  • Last login:March 02, 2019, 12:59:01 pm
  • I want to build my own arcade controls!
Re: Best frame_delay setting vs computer speed
« Reply #8 on: February 04, 2017, 10:46:33 am »
Anyone know if multithreading and triple buffer "should" be on or off? Or is it another one that depends on the game. If it depends, what does it depend on?
My Fighter CRT Cabinet Thread: Tzakiel's 2P Cabinet

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 19, 2025, 04:03:33 am
  • Quote me with care
Re: Best frame_delay setting vs computer speed
« Reply #9 on: February 04, 2017, 11:04:52 am »
Anyone know if multithreading and triple buffer "should" be on or off? Or is it another one that depends on the game. If it depends, what does it depend on?

The multithreading setting no longer exists. Triplebuffer should only be used when target refresh is not achievable with current config. GM does it automatically for you.
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

Tzakiel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 272
  • Last login:March 02, 2019, 12:59:01 pm
  • I want to build my own arcade controls!
Re: Best frame_delay setting vs computer speed
« Reply #10 on: February 04, 2017, 11:14:50 am »
Thanks calamity.
« Last Edit: February 05, 2017, 08:46:19 am by Tzakiel »
My Fighter CRT Cabinet Thread: Tzakiel's 2P Cabinet

schmerzkaufen

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 792
  • Last login:April 16, 2025, 09:46:43 am
  • Multiple Electronic Machine Emulator
Re: Best frame_delay setting vs computer speed
« Reply #11 on: February 05, 2017, 07:23:26 am »
Prety neat, thanks. In an ideal world, it would be awesome to turn on some sort of auto frame delay setting that just adjusts as it should for each game, on the fly or just once, as part of the GM code. Probably more complicated than it sounds, but one can dream.

Better: a wizard program where it looks for the best frame_delay value first, then lets you find the ideal sync_offset, and audio latency settings (+ save settings per driver or game of course) ZOMG

(Also in the future I expect GroovyMAME to do the laundry, auto-order my printer cartridges, and answer the phone for me. :D)
« Last Edit: February 05, 2017, 07:25:38 am by schmerzkaufen »

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1810
  • Last login:Yesterday at 05:59:59 pm
  • Is running at 15kHz
Re: Best frame_delay setting vs computer speed
« Reply #12 on: February 05, 2017, 05:40:55 pm »
(Also in the future I expect GroovyMAME to do the laundry, auto-order my printer cartridges, and answer the phone for me. :D)

Ok GroovyMAME, code a 15kHz driver for my Nvidia card ;)