17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-07 21:22:27 +01:00

perf(debug): memory of the process and of its parts in the debug panel: resident, peak and private memory, card memory (GL_NVX_gpu_memory_info), the copies kept by the textures, geometry banks, models, scenery shapes and lines, sleepers and sound buffers

This commit is contained in:
2026-10-23 22:02:03 +02:00
parent 1a42009dc2
commit 2dc70a50bc
14 changed files with 346 additions and 1 deletions

View File

@@ -617,6 +617,12 @@ class opengl46_renderer : public gfx_renderer {
//debug_stats m_debugstats;
std::string m_debugstatstext;
std::vector<info_section> m_debugsections; // the same data in sections, for the debug panel
// what the process and its parts keep in memory, for the debug panel, gathered every 2 s; whether the card tells its memory
// (GL_NVX_gpu_memory_info), -1 not asked yet
void Update_Memory_Info();
std::string m_memorytext;
std::chrono::steady_clock::time_point m_memorytime {};
int m_nvxmemory { -1 };
struct simulation_state {
std::string weather;
std::string season;