diff --git a/application/F3DOptionsTools.h b/application/F3DOptionsTools.h index 7a365eb4ba..5d2a8a8599 100644 --- a/application/F3DOptionsTools.h +++ b/application/F3DOptionsTools.h @@ -56,7 +56,7 @@ static inline const OptionsDict DefaultAppOptions = { { "interaction-test-record", "" }, { "interaction-test-play", "" }, { "command-script", "" }, - { "frame-rate", "30" }, + { "frame-rate", "30.0" }, }; /** diff --git a/application/F3DStarter.cxx b/application/F3DStarter.cxx index aceddccfa2..9c67561af4 100644 --- a/application/F3DStarter.cxx +++ b/application/F3DStarter.cxx @@ -85,7 +85,7 @@ class F3DStarter::F3DInternals double MaxSize; std::optional AnimationTime; bool Watch; - int FrameRate; + double FrameRate; std::vector Plugins; std::string ScreenshotFilename; std::string VerboseLevel; @@ -547,7 +547,7 @@ class F3DStarter::F3DInternals { this->AppOptions.AnimationTime = f3d::options::parse(appOptions.at("animation-time")); } - this->AppOptions.FrameRate = f3d::options::parse(appOptions.at("frame-rate")); + this->AppOptions.FrameRate = f3d::options::parse(appOptions.at("frame-rate")); this->AppOptions.Watch = f3d::options::parse(appOptions.at("watch")); this->AppOptions.Plugins = { f3d::options::parse>( appOptions.at("load-plugins")) }; diff --git a/doc/user/OPTIONS.md b/doc/user/OPTIONS.md index daa53fccff..02cbe3a45a 100644 --- a/doc/user/OPTIONS.md +++ b/doc/user/OPTIONS.md @@ -19,7 +19,7 @@ Options|Default|Description \-\-no-render||Do not render anything and quit just after loading the first file, use with \-\-verbose to recover information about a file. \-\-max-size=\|-1|Prevent F3D to load a file bigger than the provided size in Mib, negative value means unlimited, useful for thumbnails. \-\-watch||Watch current file and automatically reload it whenever it is modified on disk. -\-\-frame-rate=\|30|Frame rate used to refresh animation and other repeated tasks (watch, UI). Does not impact rendering frame rate. +\-\-frame-rate=\|30.0|Frame rate used to refresh animation and other repeated tasks (watch, UI). Does not impact rendering frame rate. \-\-load-plugins=\||List of plugins to load separated with a comma. Official plugins are `alembic`, `assimp`, `draco`, `exodus`, `occt`, `usd`, `vdb`. See [plugins](PLUGINS.md) for more info. \-\-scan-plugins||Scan standard directories for plugins and display their names, results may be incomplete. See [plugins](PLUGINS.md) for more info. \-\-screenshot-filename=\|`{app}/{model}_{n}.png`|Filename to save [screenshots](INTERACTIONS.md#taking-screenshots) to. Can use [template variables](#filename-templating).