17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-05 01:55:43 +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

@@ -9,6 +9,8 @@ http://mozilla.org/MPL/2.0/.
#pragma once
#include "utilities/memorystats.h"
#if defined(__APPLE__) && !__has_include(<AL/al.h>)
#include <OpenAL/al.h>
#include <OpenAL/alc.h>
@@ -60,6 +62,9 @@ public:
// creates AL buffers for files decoded in the background so far, or for all of them if requested
void
update( bool const Wait = false );
// the AL buffers made and the bytes of their sound data, which the AL keeps in the process, for the debug panel
memory_count
memory() const;
private:
// types