Skip to content

Commit

Permalink
frame rate in double
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal committed Dec 16, 2024
1 parent cd4c52e commit e9dfa97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/F3DOptionsTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static inline const OptionsDict DefaultAppOptions = {
{ "interaction-test-record", "" },
{ "interaction-test-play", "" },
{ "command-script", "" },
{ "frame-rate", "30" },
{ "frame-rate", "30.0" },
};

/**
Expand Down
4 changes: 2 additions & 2 deletions application/F3DStarter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class F3DStarter::F3DInternals
double MaxSize;
std::optional<double> AnimationTime;
bool Watch;
int FrameRate;
double FrameRate;
std::vector<std::string> Plugins;
std::string ScreenshotFilename;
std::string VerboseLevel;
Expand Down Expand Up @@ -547,7 +547,7 @@ class F3DStarter::F3DInternals
{
this->AppOptions.AnimationTime = f3d::options::parse<double>(appOptions.at("animation-time"));
}
this->AppOptions.FrameRate = f3d::options::parse<int>(appOptions.at("frame-rate"));
this->AppOptions.FrameRate = f3d::options::parse<double>(appOptions.at("frame-rate"));
this->AppOptions.Watch = f3d::options::parse<bool>(appOptions.at("watch"));
this->AppOptions.Plugins = { f3d::options::parse<std::vector<std::string>>(
appOptions.at("load-plugins")) };
Expand Down
2 changes: 1 addition & 1 deletion doc/user/OPTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=\<size in MiB\>|-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=\<fps\>|30|Frame rate used to refresh animation and other repeated tasks (watch, UI). Does not impact rendering frame rate.
\-\-frame-rate=\<fps\>|30.0|Frame rate used to refresh animation and other repeated tasks (watch, UI). Does not impact rendering frame rate.
\-\-load-plugins=\<paths or names\>||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=\<png file\>|`{app}/{model}_{n}.png`|Filename to save [screenshots](INTERACTIONS.md#taking-screenshots) to. Can use [template variables](#filename-templating).
Expand Down

0 comments on commit e9dfa97

Please sign in to comment.