Skip to content

Conversation

@hukasu
Copy link
Contributor

@hukasu hukasu commented Jan 12, 2026

Objective

LogDiagnosticsPlugin prints the values on the DiagnosticStore to the console, which is spam-y, create an alternative that is visual

Solution

Create RenderAssetsOverlayPlugin to create an UI that presents the data for the MaterialAllocatorDiagnosticPlugin::<StandardMaterial> and MeshAllocatorDiagnosticPlugin on a draggable and collapsable window

Testing

Enabled it on the many_foxes example

Showcase

image image image

@hukasu hukasu requested a review from alice-i-cecile January 12, 2026 23:27
@hukasu hukasu added A-Dev-Tools Tools used to debug Bevy applications. S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jan 12, 2026
@alice-i-cecile alice-i-cecile added C-Feature A new feature, making something new possible M-Release-Note Work that should be called out in the blog due to impact labels Jan 12, 2026
@alice-i-cecile alice-i-cecile added this to the 0.19 milestone Jan 12, 2026
@github-actions
Copy link
Contributor

It looks like your PR has been selected for a highlight in the next release blog post, but you didn't provide a release note.

Please review the instructions for writing release notes, then expand or revise the content in the release notes directory to showcase your changes.

/// so make sure that the plugin that writes to it is properly set up.
#[derive(Component)]
pub struct DiagnosticsOverlay {
title: Cow<'static, str>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part of me thinks that we should use the Name component instead, but I won't block on that.

};

commands.entity(entity).insert((
Node {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this window would look a bit nicer with slightly rounded corners.

@alice-i-cecile alice-i-cecile added S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jan 13, 2026
@IceSentry
Copy link
Contributor

I would also note that the log diagnostic plugin can measurably impact performance every time it logs things to the console so having something that doesn't need to do IO is much better to report performance metrics.

@alice-i-cecile
Copy link
Member

@hukasu feel free to resolve conversations when the feedback has been addressed, so we can quickly tell the status of work items when reviewing :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Dev-Tools Tools used to debug Bevy applications. C-Feature A new feature, making something new possible M-Release-Note Work that should be called out in the blog due to impact S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants