Skip to content

Commit

Permalink
Update configs, behavior improvement for settings
Browse files Browse the repository at this point in the history
  • Loading branch information
HurpDurp committed Feb 5, 2016
1 parent 9400aae commit 68b0a8d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 31 deletions.
19 changes: 10 additions & 9 deletions BaseFPS.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,16 @@ mat_picmip 1 // Controls texture quality.
// Mostly preference, experiment what values
// give you the best framerate.
mat_forceaniso 16 // Sets Ansiotropic filtering to 16x
mat_trilinear 0 // Gives the best performance in benchmarks
// Sets Ansiotropic filtering to 16x
// Gives the best performance in benchmarks
mat_forceaniso 16
mat_trilinear 0
mat_antialias 4
mat_aaquality 0
mat_phong 1 // Phong shading on players and weapons.
// Set to preference, provides little performance.
// Set to preference, provides little performance gain.
r_propsmaxdist 0 // Objects fading distance
lod_TransitionDist 0 // The distance at which the lod is reduced on objects
Expand Down Expand Up @@ -162,6 +167,7 @@ tracer_extra 0
mat_motion_blur_enabled 0
r_fastzreject -1
cl_jiggle_bone_framerate_cutoff 0
in_usekeyboardsampletime 0
// Props
r_staticprop_lod 4
Expand Down Expand Up @@ -199,11 +205,6 @@ rope_smooth 0
rope_subdiv 0
rope_wind_dist 0
// Snake Oil
// May or may not give any improvement, needs to be tested more
in_usekeyboardsampletime 0
ai_expression_optimization 1
// ----------------------------------------------------------------------------
// Threading -- ~11% fps improvement
// ----------------------------------------------------------------------------
Expand Down Expand Up @@ -268,4 +269,4 @@ tf_training_has_prompted_for_options "1"
tf_training_has_prompted_for_training "1"
tf_scoreboard_ping_as_text 1
hud_fastswitch 1
hud_fastswitch 1
9 changes: 4 additions & 5 deletions Benchmark Examples/Anisotropic.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// TODO: Verify that these are the correct values.

16x Anisotropic | mat_forceaniso 16 | mat_trilinear 0
8x Anisotropic | mat_forceaniso 8 | mat_trilinear 0
4x Anisotropic | mat_forceaniso 4 | mat_trilinear 0
2x Anisotropic | mat_forceaniso 1 | mat_trilinear 1
Trilinear | mat_forceaniso 0 | mat_trilinear 1
Bilinear | mat_forceaniso 0 | mat_trilinear 0
2x Anisotropic | mat_forceaniso 2 | mat_trilinear 0
Trilinear | mat_forceaniso 1 | mat_trilinear 1
Bilinear | mat_forceaniso 1 | mat_trilinear 0
No Aniso | mat_forceaniso 0 | mat_trilinear 0
33 changes: 16 additions & 17 deletions TF2 Benchmarker/TF2 Benchmarker/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ private void btn_start_Click(object sender, EventArgs e)
FileInfo config = new FileInfo(path + @"\tf\cfg\config.cfg");
if (config.Exists)
{
config.IsReadOnly = false;
config.CopyTo(path + @"\tf\cfg\config.cfg.bak", true);
config.Delete();
}
Expand Down Expand Up @@ -660,29 +661,27 @@ private void InitializeConfig()
{
IniFile ConfigFile = new IniFile(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\TFBenchmark.ini");

if (File.Exists(ConfigFile.path))
{
// Load config
string path = ConfigFile.IniReadValue("General", "TFPath");

if (path.Length > 0)
{
Settings.Add("TFPath", path);
lbl_tf2path.Text = path;
}

txt_launchoptions.Text = ConfigFile.IniReadValue("General", "LaunchOptions");
txt_demoname.Text = ConfigFile.IniReadValue("General", "DemoName");

Log("Settings loaded.");
}
else
if (!File.Exists(ConfigFile.path))
{
// Write a new config
ConfigFile.IniWriteValue("General", "TFPath", "");
ConfigFile.IniWriteValue("General", "LaunchOptions", "-novid -w 1920 -h 1080 -fullscreen");
ConfigFile.IniWriteValue("General", "DemoName", "benchmark01.dem");
}

// Load config
string path = ConfigFile.IniReadValue("General", "TFPath");

if (path.Length > 0)
{
Settings.Add("TFPath", path);
lbl_tf2path.Text = path;
}

txt_launchoptions.Text = ConfigFile.IniReadValue("General", "LaunchOptions");
txt_demoname.Text = ConfigFile.IniReadValue("General", "DemoName");

Log("Settings loaded.");
}

#endregion
Expand Down

0 comments on commit 68b0a8d

Please sign in to comment.