Skip to content

Allow using RenderPlugin and WinitPlugin with WindowPlugin being disabled #19042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

hukasu
Copy link
Contributor

@hukasu hukasu commented May 3, 2025

Objective

Allow using RenderPlugin and WinitPlugin on apps that have WindowPlugin disabled.

Solution

Create guards for systems and methods that rely on resources inserted by WindowPlugin.

Testing

Doing a experiment with a headless app locally.

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen A-Windowing Platform-agnostic interface layer to run your app in C-Usability A targeted quality-of-life change that makes Bevy easier to use S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels May 5, 2025
@alice-i-cecile
Copy link
Member

Generally pretty reasonable idea. Can you explain your use case here? I assume this is for headless testing or something?

@hukasu
Copy link
Contributor Author

hukasu commented May 5, 2025

I was trying to make a test for programatic detection of the memory leaks when using get_mut on Mesh or Material, which required RenderPlugin, but would be nice if it could run without a window, that is how i got the data for #19035

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen A-Windowing Platform-agnostic interface layer to run your app in C-Usability A targeted quality-of-life change that makes Bevy easier to use S-Needs-Review Needs reviewer attention (from anyone!) to move forward
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants