iidx: millisecond-based delay option (#672)

## Link to GitHub Issue or related Pull Request, if one exists
#181 

## Description of change
Use millisecond-based calculation to add artificial delay to the TT
input.

## Testing
Tested 64 bit TDJ and LDJ.
This commit is contained in:
bicarus
2026-05-03 01:23:45 -07:00
committed by GitHub
parent c8962a0e77
commit c4193eddc5
2 changed files with 30 additions and 10 deletions
+8 -4
View File
@@ -657,21 +657,25 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
},
{
// IIDXTTDelayP1
.title = "IIDX TT Delay Window (Player 1)",
.title = "IIDX TT Delay ms (Player 1)",
.name = "iidxttdelayp1",
.desc = "Delays turntable by number of input polls. Duration is heavily dependent on what I/O emulation is in use. "
.desc = "Delays turntable by number of milliseconds. "
"Delay will be *at most* the specified period; maximum error is dependent on the game's poll rate. "
"As usual, changing any option requires a restart. Default: 0 (no delay).",
.type = OptionType::Integer,
.setting_name = "(0-500)",
.game_name = "Beatmania IIDX",
.category = "Game Options (Advanced)",
},
{
// IIDXTTDelayP2
.title = "IIDX TT Delay Window (Player 2)",
.title = "IIDX TT Delay ms (Player 2)",
.name = "iidxttdelayp2",
.desc = "Delays turntable by number of input polls. Duration is heavily dependent on what I/O emulation is in use. "
.desc = "Delays turntable by number of milliseconds. "
"Delay will be *at most* the specified period; maximum error is dependent on the game's poll rate. "
"As usual, changing any option requires a restart. Default: 0 (no delay).",
.type = OptionType::Integer,
.setting_name = "(0-500)",
.game_name = "Beatmania IIDX",
.category = "Game Options (Advanced)",
},