mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 08:46:38 +02:00
headless: split --timeout into --timeout-wall and --timeout-emulated
--timeout was wall-clock seconds, which is what CI wants but not what you want when the question is whether the game has had long enough to get somewhere: a heavy scene runs many times slower than real time and a near-idle one much faster, so the same budget means very different amounts of game time. Booting a firmware VSH is a good example - 10 emulated seconds is about 25 real ones on 6.61 and about 7 on 2.00, and judging those two by the same wall-clock number makes a working shell look stuck. Both limits can be set at once and whichever is reached first ends the run, which also says which one it was. --timeout still works as the old name for --timeout-wall. The IsDebuggerPresent() exemption stays on the wall-clock check only; the emulated one doesn't need it, since sitting at a native breakpoint burns no emulated time. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
ce42033686
commit
e8fa4e3f56
+4
-1
@@ -206,7 +206,10 @@ static const CommandLineParam g_autoParams[] = {
|
||||
{POFF(screenshotFilenameSave), CmdParamType::String, "screenshot-save", '\0', "Save rendered screenshot to specified path (PNG if the path ends in .png, BMP otherwise)", CmdLineMode::Headless},
|
||||
{POFF(screenshotFilenameDiff), CmdParamType::String, "screenshot-diff", '\0', "Save a visual comparison image to FILE when comparing screenshots", CmdLineMode::Headless},
|
||||
{POFF(screenshotSaveKeepAlpha), CmdParamType::Bool, "screenshot-keep-alpha", '\0', "Preserve the alpha channel when saving PNG screenshots (default: alpha is forced to 255)", CmdLineMode::Headless},
|
||||
{POFF(timeout), CmdParamType::Double, "timeout", '\0', "Set the timeout value", CmdLineMode::Headless},
|
||||
{POFF(timeoutWall), CmdParamType::Double, "timeout-wall", '\0', "Stop the run after this many real seconds", CmdLineMode::Headless},
|
||||
{POFF(timeoutEmulated), CmdParamType::Double, "timeout-emulated", '\0', "Stop the run after this many emulated seconds", CmdLineMode::Headless},
|
||||
// The old name for --timeout-wall, kept working because it's in a lot of scripts.
|
||||
{POFF(timeoutWall), CmdParamType::Double, "timeout", '\0', "Alias for --timeout-wall", CmdLineMode::Headless},
|
||||
{POFF(maxScreenshotError), CmdParamType::Double, "max-mse", '\0', "Maximum allowed MSE error for screenshot comparison", CmdLineMode::Headless},
|
||||
{POFF(mountIso), CmdParamType::String, "mount", 'm', "Mount ISO/CSO on umd1:", CmdLineMode::Headless},
|
||||
{POFF(unpackUpdater), CmdParamType::String, "unpack-updater", '\0', "Unpack the firmware in an updater EBOOT.PBP into DIR and exit", CmdLineMode::Headless},
|
||||
|
||||
Reference in New Issue
Block a user