Table of Contents

Enum MemoryCategory

Namespace
PopcorningGuineaPig.Engine.Diagnostics
Assembly
PopcorningGuineaPig.Engine.dll

Memory categories tracked by MemorySnapshot.

public enum MemoryCategory

Fields

Fonts = 6

Bytes consumed by registered fonts (glyph atlas pixel data). Byte estimation is deferred to story 12.7; the current build reports 0 here.

ManagedHeap = 0

Managed CLR heap (GC.GetTotalMemory). When measured from a shipped game this is the game's heap; when measured from the editor it includes the editor's allocations and is reported under the "host process" label.

Models = 4

Bytes consumed by registered models. Byte estimation is deferred to story 12.7; the current build reports 0 here.

Other = 8

Catch-all for memory not attributed to any specific category. Byte estimation is deferred to story 12.7; the current build reports 0 here.

ProcessPrivate = 2

Host process private committed memory (Process.PrivateMemorySize64). Includes the editor's overhead when sampled from inside the editor.

ProcessWorkingSet = 1

Host process working set — physical RAM in use (Process.WorkingSet64). Includes the editor's overhead when sampled from inside the editor.

Shaders = 7

Shaders. The GPU memory of compiled shaders is opaque; this category is always reported as 0. The shader count is exposed separately via IAssetRegistry.GetShaderCount.

Sounds = 5

Bytes consumed by registered sounds (decoded buffers + streaming sources). Byte estimation is deferred to story 12.7; the current build reports 0 here.

Textures = 3

Estimated bytes consumed by registered textures, derived from each texture's pixel format and dimensions.

Remarks

Categories fall into two groups, which the diagnostics overlay surfaces in separate sections:

  • Game asset state Textures, Models, Sounds, Fonts, Shaders, Other — bytes attributable to assets the engine has loaded for the project being built. This is the footprint a shipped game would carry.
  • Host process counters ManagedHeap, ProcessWorkingSet, ProcessPrivate — bytes attributed to the host process (editor + engine, or the game runtime when sampled from a shipped game). These include the host's overhead and are NOT the game's standalone footprint when sampled from inside the editor.

Editor-only memory (thumbnail caches, ImGui atlases, theme textures) is intentionally NOT represented; those are workshop concerns, not game concerns.