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

perf(debug): parts of the vehicle update in the debug panel: scenery animations, power grid, roads, preparation, forces, vehicle update and ai, with the counts of vehicles and physics steps; input and the start of the ui frame timed apart

This commit is contained in:
2026-10-23 17:26:44 +02:00
parent fc714d50ec
commit 52df707f30
6 changed files with 111 additions and 6 deletions

View File

@@ -496,10 +496,12 @@ int eu07_application::run()
if (m_headtrack)
m_headtrack->update();
begin_ui_frame();
Timer::subsystem.loop_input.stop();
Timer::subsystem.loop_ui_frame.start();
begin_ui_frame();
Timer::subsystem.loop_ui_frame.stop();
// -------------------------------------------------------------------
// multiplayer command relaying logic can seem a bit complex
//

View File

@@ -434,6 +434,8 @@ bool driver_mode::update()
Timer::subsystem.sim_precipitation.stop();
Timer::subsystem.sim_total.stop();
// the parts of the vehicle update made in the frame, none when paused
Timer::subsystem.commit_frame();
Timer::subsystem.loop_audio.start();
simulation::Region->update_sounds();