mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-30 10:50:28 +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:
@@ -12,6 +12,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include <istream>
|
||||
#include <limits>
|
||||
#include "winheaders.h"
|
||||
#include "utilities/memorystats.h"
|
||||
#include <string>
|
||||
#include "model/ResourceManager.h"
|
||||
#include "gl/ubo.h"
|
||||
@@ -180,6 +181,14 @@ public:
|
||||
// debug performance string
|
||||
std::string
|
||||
info() const;
|
||||
// what the textures keep in memory, for the debug panel: copies of the data kept in the process (count, bytes), and the
|
||||
// textures made on the gpu with the size of their data (count, bytes)
|
||||
struct memory_data {
|
||||
memory_count cpu;
|
||||
memory_count gpu;
|
||||
};
|
||||
memory_data
|
||||
memory() const;
|
||||
|
||||
private:
|
||||
// types:
|
||||
|
||||
Reference in New Issue
Block a user