17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-25 03:17:13 +01:00

perf(physics): air flowing along a pipe wakes the physics of a coupled vehicle only when it changes its pressure by more than physics.pipewake (0.001 bar), not with any trickle of it

This commit is contained in:
2026-10-23 19:30:21 +02:00
parent 9a7ff372f7
commit 2f96dfe767
5 changed files with 39 additions and 8 deletions

View File

@@ -1516,6 +1516,7 @@ debug_panel::render_section_renderer() {
// the physics of the vehicles, timed in the section of the main loop
ImGui::Checkbox( "let vehicles standing still and held by their brakes sleep (physics.sleepheld)", &Global.physics_sleepheld );
ImGui::Checkbox( "one step of the physics in a frame for road vehicles farther than 1 km (physics.roadlod)", &Global.physics_roadlod );
ImGui::SliderFloat( "bar: change of the pressure in a pipe which wakes the physics of a vehicle, 0 any (physics.pipewake)", &Global.physics_pipewake, 0.f, 0.05f, "%.4f" );
return true;
}