-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add a warning if WindowDescriptor is inserted after the render plugin #5884
Copy link
Copy link
Closed
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-DocsAn addition or correction to our documentationAn addition or correction to our documentationC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with Bevy
Description
How can Bevy's documentation be improved?
To set the present_mode (aka vsync) of the bevy app, it is required that the WindowDescriptor resource be inserted before the insertion of the core bevy rendering plugin, so that it's possible to set the present mode when initializing rendering-related resources.
It is easy to mistakenly add the WindowDescriptor after the default bevy plugins. And there is absolutely no feedback telling user that they are "holding it wrong," resulting in difficult-to-understand unexpected behavior.
There should be a check on whether WindowDescriptor was inserted/updated after its useful insertion time and print a warning, explaining what problems this entails and how to fix the issue (adding the resource before the rendering plugin).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-DocsAn addition or correction to our documentationAn addition or correction to our documentationC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with Bevy