Skip to content

Commit

Permalink
removed diag_physics_dt
Browse files Browse the repository at this point in the history
  • Loading branch information
tritonas00 committed Apr 11, 2021
1 parent 7936a6b commit 0c58f5d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion source/main/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ CVar* diag_hide_beam_stress;
CVar* diag_hide_wheel_info;
CVar* diag_hide_wheels;
CVar* diag_hide_nodes;
CVar* diag_physics_dt;
CVar* diag_terrn_log_roads;

// System
Expand Down
1 change: 0 additions & 1 deletion source/main/Application.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ extern CVar* diag_hide_beam_stress;
extern CVar* diag_hide_wheel_info;
extern CVar* diag_hide_wheels;
extern CVar* diag_hide_nodes;
extern CVar* diag_physics_dt;
extern CVar* diag_terrn_log_roads;

// System
Expand Down
8 changes: 0 additions & 8 deletions source/main/gui/panels/GUI_TopMenubar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,14 +410,6 @@ void TopMenubar::Update()
}
DrawGIntSlider(App::gfx_fps_limit, _LC("TopMenubar", "Game"), 0, 240);

/* // Uncomment if you want to tweak the physics, it has no other use, really.
// Do not publish - players tend to max it out and then complain about performance. :|
int physics_fps = std::round(1.0f / App::diag_physics_dt->GetFloat());
if (ImGui::SliderInt("Physics", &physics_fps, 2000, 10000))
{
App::diag_physics_dt->SetVal(Ogre::Math::Clamp(1.0f / physics_fps, 0.0001f, 0.0005f));
}
*/
ImGui::Separator();
ImGui::TextColored(GRAY_HINT_TEXT, _LC("TopMenubar", "Simulation:"));
float slowmotion = std::min(App::GetGameContext()->GetActorManager()->GetSimulationSpeed(), 1.0f);
Expand Down
2 changes: 1 addition & 1 deletion source/main/physics/ActorManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <string>
#include <vector>

#define PHYSICS_DT App::diag_physics_dt->GetFloat()
#define PHYSICS_DT 0.0005f // fixed dt of 0.5 ms

namespace RoR {

Expand Down
1 change: 0 additions & 1 deletion source/main/system/CVar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ void Console::CVarSetupBuiltins()
App::diag_hide_wheel_info = this->CVarCreate("diag_hide_wheel_info", "Hide wheel info", CVAR_ARCHIVE | CVAR_TYPE_BOOL, "true");
App::diag_hide_wheels = this->CVarCreate("diag_hide_wheels", "Hide wheels", CVAR_ARCHIVE | CVAR_TYPE_BOOL, "false");
App::diag_hide_nodes = this->CVarCreate("diag_hide_nodes", "Hide nodes", CVAR_ARCHIVE | CVAR_TYPE_BOOL, "false");
App::diag_physics_dt = this->CVarCreate("diag_physics_dt", "PhysicsTimeStep", CVAR_ARCHIVE | CVAR_TYPE_FLOAT, "0.0005");
App::diag_terrn_log_roads = this->CVarCreate("diag_terrn_log_roads", "", CVAR_ARCHIVE | CVAR_TYPE_BOOL, "false");

App::sys_process_dir = this->CVarCreate("sys_process_dir", "", 0);
Expand Down

0 comments on commit 0c58f5d

Please # to comment.