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

perf(physics): vehicles standing still and held by their brakes let their physics sleep (physics.sleepheld)

This commit is contained in:
2026-10-23 18:20:49 +02:00
parent e054fe900d
commit a04efbf968
7 changed files with 33 additions and 6 deletions

View File

@@ -1513,6 +1513,8 @@ debug_panel::render_section_renderer() {
}
ImGui::PopTextWrapPos();
ImGui::PopStyleColor();
// 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 );
return true;
}