TextureMemoryReport
- Namespace: Turian.Engine.Core
- Source File: TextureMemoryReport.cs
Reports how much device memory the loaded textures hold, and warns when a scene's textures alone crowd out the rest of the frame. Called once per frame by the render system; it only logs when the total has moved, so a settled scene reports a single line at load.
Public Methods
ReportIfChanged
public static void ReportIfChanged(Device device)
Logs the texture memory total if it changed since the last report, warning when it exceeds the share of device-local memory textures should keep to.
Parameters:
device(Device): The device whose memory heaps bound the budget.
Reset
public static void Reset()
Forgets the last reported total, so the next call reports again. Call this when the texture cache is cleared.