mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
FPS is now a setting instead of commandline option
This commit is contained in:
parent
fd662f937a
commit
00cc45c537
3 changed files with 10 additions and 4 deletions
|
@ -343,6 +343,8 @@ void OMW::Engine::go()
|
||||||
else if (boost::filesystem::exists(globaldefault))
|
else if (boost::filesystem::exists(globaldefault))
|
||||||
settings.loadUser(globaldefault);
|
settings.loadUser(globaldefault);
|
||||||
|
|
||||||
|
mFpsLevel = settings.getInt("fps", "HUD");
|
||||||
|
|
||||||
mOgre->configure(!boost::filesystem::is_regular_file(mCfgMgr.getOgreConfigPath()),
|
mOgre->configure(!boost::filesystem::is_regular_file(mCfgMgr.getOgreConfigPath()),
|
||||||
mCfgMgr.getOgreConfigPath().string(),
|
mCfgMgr.getOgreConfigPath().string(),
|
||||||
mCfgMgr.getLogPath().string(),
|
mCfgMgr.getLogPath().string(),
|
||||||
|
|
|
@ -92,9 +92,6 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
|
||||||
("plugin", bpo::value<StringsVector>()->default_value(StringsVector(), "")
|
("plugin", bpo::value<StringsVector>()->default_value(StringsVector(), "")
|
||||||
->multitoken(), "plugin file(s)")
|
->multitoken(), "plugin file(s)")
|
||||||
|
|
||||||
("fps", boost::program_options::value<int>()->implicit_value(1)
|
|
||||||
->default_value(0), "fps counter detail (0 = off, 1 = fps counter, 2 = full detail)")
|
|
||||||
|
|
||||||
("anim-verbose", boost::program_options::value<bool>()->implicit_value(true)
|
("anim-verbose", boost::program_options::value<bool>()->implicit_value(true)
|
||||||
->default_value(false), "output animation indices files")
|
->default_value(false), "output animation indices files")
|
||||||
|
|
||||||
|
@ -225,7 +222,6 @@ bool parseOptions (int argc, char** argv, OMW::Engine& engine, Files::Configurat
|
||||||
engine.setNewGame(variables["new-game"].as<bool>());
|
engine.setNewGame(variables["new-game"].as<bool>());
|
||||||
|
|
||||||
// other settings
|
// other settings
|
||||||
engine.showFPS(variables["fps"].as<int>());
|
|
||||||
engine.setDebugMode(variables["debug"].as<bool>());
|
engine.setDebugMode(variables["debug"].as<bool>());
|
||||||
engine.setSoundUsage(!variables["nosound"].as<bool>());
|
engine.setSoundUsage(!variables["nosound"].as<bool>());
|
||||||
engine.setScriptsVerbosity(variables["script-verbose"].as<bool>());
|
engine.setScriptsVerbosity(variables["script-verbose"].as<bool>());
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
[HUD]
|
||||||
|
|
||||||
|
# FPS counter
|
||||||
|
# 0: not visible
|
||||||
|
# 1: basic FPS display
|
||||||
|
# 2: advanced FPS display (batches, triangles)
|
||||||
|
fps = 0
|
||||||
|
|
||||||
[Objects]
|
[Objects]
|
||||||
|
|
||||||
shaders = true
|
shaders = true
|
||||||
|
|
Loading…
Reference in a new issue