mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Working threads counter in F12 panel
This commit is contained in:
@@ -620,7 +620,7 @@ debug_panel::render() {
|
||||
ImGui::Checkbox( "Debug Traction", &DebugTractionFlag );
|
||||
}
|
||||
render_section( "Camera", m_cameralines );
|
||||
render_section( "Gfx Renderer", m_rendererlines );
|
||||
render_section( "Gfx Renderer / Statistics", m_rendererlines );
|
||||
render_section_settings();
|
||||
render_section_developer(); // Developer tools
|
||||
#ifdef WITH_UART
|
||||
@@ -1470,6 +1470,14 @@ debug_panel::update_section_renderer( std::vector<text_line> &Output ) {
|
||||
// renderer stats
|
||||
Output.emplace_back( GfxRenderer->info_times(), 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
|
||||
|
||||
Reference in New Issue
Block a user