bevy/release-content/release-notes/render-assets-diagnostics.md
2025-05-24 22:34:47 -03:00

725 B

title authors pull_requests
Render Assets diagnostics
@hukasu
19311

Goals

Create diagnostics plugins MeshAllocatorDiagnosticPlugin, MaterialAllocatorDiagnosticPlugin and RenderAssetDiagnosticPlugin that collect measurements related to MeshAllocators, MaterialBindGroupAllocator, and RenderAssets respectively.

MeshAllocatorDiagnosticPlugin and MaterialDiagnosticPlugin measure the number of slabs, the total size of memory allocated by the slabs, and the number of objects allocated in the slabs. Only bindless materials use slabs for their allocations, non-bindless materials return 0 for all of them.

RenderAssetDiagnosticsPlugin measure the number of assets in RenderAssets<T>.