Add "--max-fps" option to limit frame rate.
This commit is contained in:
parent
ed1ec90287
commit
8c74b47a0d
1 changed files with 3 additions and 3 deletions
|
@ -1405,6 +1405,7 @@ struct OptionDesc {
|
|||
{"aero", true, OPTION_STRING, "/sim/aero", false, "", 0 },
|
||||
{"aircraft-dir", true, OPTION_IGNORE, "", false, "", 0 },
|
||||
{"model-hz", true, OPTION_INT, "/sim/model-hz", false, "", 0 },
|
||||
{"max-fps", true, OPTION_DOUBLE, "/sim/frame-rate-throttle-hz", false, "", 0 },
|
||||
{"speed", true, OPTION_INT, "/sim/speed-up", false, "", 0 },
|
||||
{"trim", false, OPTION_BOOL, "/sim/presets/trim", true, "", 0 },
|
||||
{"notrim", false, OPTION_BOOL, "/sim/presets/trim", false, "", 0 },
|
||||
|
@ -2007,7 +2008,6 @@ void Options::processOptions()
|
|||
exit(-1); // exit and return an error
|
||||
case FG_OPTIONS_EXIT:
|
||||
exit(0); // clean exit
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue