mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-06 17:28:36 +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:
@@ -9,6 +9,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
#pragma once
|
||||
|
||||
#include "utilities/Classes.h"
|
||||
#include "utilities/memorystats.h"
|
||||
|
||||
class TMdlContainer {
|
||||
friend class TModelsManager;
|
||||
@@ -22,6 +23,13 @@ class TModelsManager {
|
||||
public:
|
||||
// McZapkie: dodalem sciezke, notabene Path!=Patch :)
|
||||
static TModel3d *GetModel(std::string const &Name, bool const dynamic = false, bool const Logerrors = true , int uid = 0);
|
||||
// what the loaded models keep in memory, for the debug panel: models, submodels with the bytes of their own copies of the
|
||||
// geometry (vertices, user data, indices; the gpu gets theirs from the geometry banks)
|
||||
struct memory_data {
|
||||
std::uint64_t models { 0 };
|
||||
memory_count submodels;
|
||||
};
|
||||
static memory_data memory();
|
||||
|
||||
private:
|
||||
// types:
|
||||
|
||||
Reference in New Issue
Block a user