mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 19:56:42 +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)) | ||||
|         settings.loadUser(globaldefault); | ||||
| 
 | ||||
|     mFpsLevel = settings.getInt("fps", "HUD"); | ||||
| 
 | ||||
|     mOgre->configure(!boost::filesystem::is_regular_file(mCfgMgr.getOgreConfigPath()), | ||||
|         mCfgMgr.getOgreConfigPath().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(), "") | ||||
|             ->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) | ||||
|             ->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>()); | ||||
| 
 | ||||
|     // other settings
 | ||||
|     engine.showFPS(variables["fps"].as<int>()); | ||||
|     engine.setDebugMode(variables["debug"].as<bool>()); | ||||
|     engine.setSoundUsage(!variables["nosound"].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] | ||||
| 
 | ||||
| shaders = true | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue