16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 13:59:19 +02:00

Working threads counter in F12 panel

This commit is contained in:
2025-02-27 01:08:52 +01:00
parent ca6c0f72e9
commit af50b7e77e

View File

@@ -620,7 +620,7 @@ debug_panel::render() {
ImGui::Checkbox( "Debug Traction", &DebugTractionFlag ); ImGui::Checkbox( "Debug Traction", &DebugTractionFlag );
} }
render_section( "Camera", m_cameralines ); render_section( "Camera", m_cameralines );
render_section( "Gfx Renderer", m_rendererlines ); render_section( "Gfx Renderer / Statistics", m_rendererlines );
render_section_settings(); render_section_settings();
render_section_developer(); // Developer tools render_section_developer(); // Developer tools
#ifdef WITH_UART #ifdef WITH_UART
@@ -1470,6 +1470,14 @@ debug_panel::update_section_renderer( std::vector<text_line> &Output ) {
// renderer stats // renderer stats
Output.emplace_back( GfxRenderer->info_times(), Global.UITextColor ); Output.emplace_back( GfxRenderer->info_times(), Global.UITextColor );
Output.emplace_back( GfxRenderer->info_stats(), Global.UITextColor ); Output.emplace_back( GfxRenderer->info_stats(), Global.UITextColor );
// CPU related
Output.emplace_back("CPU:", Global.UITextColor);
// thread counter
textline = "Running threads: " + std::to_string(Global.threads.size() + 1);
Output.emplace_back(textline, Global.UITextColor);
} }
bool bool