Fix negative VRAM values

This commit is contained in:
Ev1lbl0w 2021-03-09 09:51:17 +00:00
parent f79b8474ab
commit bae4b0c952
No known key found for this signature in database
GPG key ID: B383693E3746E58A
12 changed files with 12 additions and 12 deletions

View file

@ -1021,7 +1021,7 @@ struct _OSCoreBindImg {
void _OS::print_all_textures_by_size() {
List<_OSCoreBindImg> imgs;
int total = 0;
uint64_t total = 0;
{
List<Ref<Resource> > rsrc;
ResourceCache::get_cached_resources(&rsrc);

View file

@ -763,7 +763,7 @@ public:
void render_info_end_capture() {}
int get_captured_render_info(VS::RenderInfo p_info) { return 0; }
int get_render_info(VS::RenderInfo p_info) { return 0; }
uint64_t get_render_info(VS::RenderInfo p_info) { return 0; }
String get_video_adapter_name() const { return String(); }
String get_video_adapter_vendor() const { return String(); }

View file

@ -5946,7 +5946,7 @@ int RasterizerStorageGLES2::get_captured_render_info(VS::RenderInfo p_info) {
}
}
int RasterizerStorageGLES2::get_render_info(VS::RenderInfo p_info) {
uint64_t RasterizerStorageGLES2::get_render_info(VS::RenderInfo p_info) {
switch (p_info) {
case VS::INFO_OBJECTS_IN_FRAME:
return info.render_final.object_count;

View file

@ -1345,7 +1345,7 @@ public:
virtual void render_info_end_capture();
virtual int get_captured_render_info(VS::RenderInfo p_info);
virtual int get_render_info(VS::RenderInfo p_info);
virtual uint64_t get_render_info(VS::RenderInfo p_info);
virtual String get_video_adapter_name() const;
virtual String get_video_adapter_vendor() const;

View file

@ -8294,7 +8294,7 @@ int RasterizerStorageGLES3::get_captured_render_info(VS::RenderInfo p_info) {
}
}
int RasterizerStorageGLES3::get_render_info(VS::RenderInfo p_info) {
uint64_t RasterizerStorageGLES3::get_render_info(VS::RenderInfo p_info) {
switch (p_info) {
case VS::INFO_OBJECTS_IN_FRAME:

View file

@ -1507,7 +1507,7 @@ public:
virtual void render_info_end_capture();
virtual int get_captured_render_info(VS::RenderInfo p_info);
virtual int get_render_info(VS::RenderInfo p_info);
virtual uint64_t get_render_info(VS::RenderInfo p_info);
virtual String get_video_adapter_name() const;
virtual String get_video_adapter_vendor() const;

View file

@ -717,7 +717,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
vmem_tree->clear();
TreeItem *root = vmem_tree->create_item();
int total = 0;
uint64_t total = 0;
for (int i = 0; i < p_data.size(); i += 4) {

View file

@ -601,7 +601,7 @@ public:
virtual void render_info_end_capture() = 0;
virtual int get_captured_render_info(VS::RenderInfo p_info) = 0;
virtual int get_render_info(VS::RenderInfo p_info) = 0;
virtual uint64_t get_render_info(VS::RenderInfo p_info) = 0;
virtual String get_video_adapter_name() const = 0;
virtual String get_video_adapter_vendor() const = 0;

View file

@ -148,7 +148,7 @@ void VisualServerRaster::finish() {
/* STATUS INFORMATION */
int VisualServerRaster::get_render_info(RenderInfo p_info) {
uint64_t VisualServerRaster::get_render_info(RenderInfo p_info) {
return VSG::storage->get_render_info(p_info);
}

View file

@ -685,7 +685,7 @@ public:
/* STATUS INFORMATION */
virtual int get_render_info(RenderInfo p_info);
virtual uint64_t get_render_info(RenderInfo p_info);
virtual String get_video_adapter_name() const;
virtual String get_video_adapter_vendor() const;

View file

@ -605,7 +605,7 @@ public:
/* RENDER INFO */
//this passes directly to avoid stalling
virtual int get_render_info(RenderInfo p_info) {
virtual uint64_t get_render_info(RenderInfo p_info) {
return visual_server->get_render_info(p_info);
}

View file

@ -1038,7 +1038,7 @@ public:
INFO_VERTEX_MEM_USED,
};
virtual int get_render_info(RenderInfo p_info) = 0;
virtual uint64_t get_render_info(RenderInfo p_info) = 0;
virtual String get_video_adapter_name() const = 0;
virtual String get_video_adapter_vendor() const = 0;