Relationship between Video Mem, Texture Mem and Buffer Mem?

Godot Version

4.3

Question

In the debugger, under Monitors Tab, in the Video section, what are the relationships between Video Mem, Texture Mem and Buffer Mem?

I believe all the textures from png images and such go into Texture Mem, but for Video Mem and Buffer Mem, what do these hold?

1 Like

There’s some info in RenderingServer’s RenderingInfo enum:

RenderingInfo RENDERING_INFO_TEXTURE_MEM_USED = 3
Texture memory used (in bytes).

RenderingInfo RENDERING_INFO_BUFFER_MEM_USED = 4
Buffer memory used (in bytes). This includes vertex data, uniform buffers, and many miscellaneous buffer types used internally.

RenderingInfo RENDERING_INFO_VIDEO_MEM_USED = 5
Video memory used (in bytes). When using the Forward+ or mobile rendering backends, this is always greater than the sum of RENDERING_INFO_TEXTURE_MEM_USED and RENDERING_INFO_BUFFER_MEM_USED, since there is miscellaneous data not accounted for by those two metrics. When using the GL Compatibility backend, this is equal to the sum of RENDERING_INFO_TEXTURE_MEM_USED and RENDERING_INFO_BUFFER_MEM_USED.

One example for video memory that’s not also reported in texture or buffer memory seems to be things like baked voxelgi data.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.