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: What will happen when frame delay be set too high?  (Read 2364 times)

0 Members and 1 Guest are viewing this topic.

inv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 21
  • Last login:August 10, 2020, 10:35:44 pm
  • I want to build my own arcade controls!
What will happen when frame delay be set too high?
« on: April 03, 2016, 02:59:03 am »
e.g. GM ASIO 0.171 reports frame delay should be set to 5 when I test game kov2106:

mame64 kov2106 -bench 240

SwitchRes: [kov2106] (1) horizontal (448x224@60.000000)->(1920x1080@60.000000)
Frame delay/percentage: 3/0.11% 5/9.33% 6/90.56%
Average speed: 350.42% (239 seconds)

but if I set frame delay to 8, everything is OK.

The game is run a solid 60 fps, I'm curious what's the different of frame delay 5 or 8.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7461
  • Last login:May 23, 2025, 06:07:25 am
  • Quote me with care
Re: What will happen when frame delay be set too high?
« Reply #1 on: April 03, 2016, 03:38:56 pm »
If -fd is set too high it will miss the sync pulse causing an additional frame of lag. In theory, if -fd is set so high that the sync pulse is consistently missed for each frame, it will appear to run perfectly smooth, despite the added latency.
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

intealls

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 322
  • Last login:May 27, 2025, 02:19:06 pm
  • I want to build my own arcade controls!
Re: What will happen when frame delay be set too high?
« Reply #2 on: April 04, 2016, 02:17:39 pm »
If -fd is set too high it will miss the sync pulse causing an additional frame of lag. In theory, if -fd is set so high that the sync pulse is consistently missed for each frame, it will appear to run perfectly smooth, despite the added latency.

This can be verified by inspecting the log when the game is run with -v, "probably missed retrace" messages should appear.

e.g. GM ASIO 0.171 reports frame delay should be set to 5 when I test game kov2106:

mame64 kov2106 -bench 240

SwitchRes: [kov2106] (1) horizontal (448x224@60.000000)->(1920x1080@60.000000)
Frame delay/percentage: 3/0.11% 5/9.33% 6/90.56%
Average speed: 350.42% (239 seconds)

but if I set frame delay to 8, everything is OK.

The game is run a solid 60 fps, I'm curious what's the different of frame delay 5 or 8.

What you see here is probably a game with variable game speed. The game *does* vary in speed, but not necessarily in gameplay, which might explain why you're not noticing anything (if it's really oscillating, you should see more over-/underruns than usual). Also, the measurement routine isn't perfect, but neither is the -bench option. If you really want to get to the bottom of the issue, you could inspect the log created with -asio_log with Octave, the scripts are somewhere in the GM ASIO thread.

Also, you should always run the benchmark at least twice to rule out issues from interfering background processes.

Edit: I read your post wrong, I thought it said 5/9.33% 8/90.56%. So read the above with this in mind, the most likely explanation is the one Calamity provided.
« Last Edit: April 04, 2016, 02:27:09 pm by intealls »

inv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 21
  • Last login:August 10, 2020, 10:35:44 pm
  • I want to build my own arcade controls!
Re: What will happen when frame delay be set too high?
« Reply #3 on: April 05, 2016, 05:48:22 pm »
It is what I need to know, thanks to Calamity and intealls!

I decide to set -fd to 3, to avoid the additional lag.