Skip to content
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

Update bevy_window::PresentMode to mirror wgpu::PresentMode #9230

Merged

Conversation

VitalyAnkh
Copy link
Contributor

Objective

Solution

Add bevy_window::PresentMode::FifoRelaxed to bevy_window::PresentMode, add documents.


Changelog

Added

  • Add bevy_window::PresentMode::FifoRelaxed to bevy_window::PresentMode.

Migration Guide

  • Handle bevy_window::PresentMode::FifoRelaxed when tweaking window present mode manually.

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen C-Usability A targeted quality-of-life change that makes Bevy easier to use labels Jul 21, 2023
@@ -819,30 +820,67 @@ pub enum PresentMode {
/// Chooses FifoRelaxed -> Fifo based on availability.
///
/// Because of the fallback behavior, it is supported everywhere.
AutoVsync = 0,
AutoVsync = 0, // NOTE: The explicit ordinal values mirror wgpu.
Copy link
Member

Choose a reason for hiding this comment

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

Great comment.

@alice-i-cecile alice-i-cecile added the M-Needs-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide label Jul 21, 2023
@mockersf mockersf added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Jul 21, 2023
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jul 21, 2023
Merged via the queue into bevyengine:main with commit 6093385 Jul 21, 2023
@cart cart added this to the 0.11.1 milestone Aug 10, 2023
cart pushed a commit that referenced this pull request Aug 10, 2023
# Objective

- Update `bevy_window::PresentMode` to mirror `wgpu::PresentMode`, Fixes
#9151.

## Solution

Add `bevy_window::PresentMode::FifoRelaxed` to
`bevy_window::PresentMode`, add documents.

---

## Changelog

### Added
- Add `bevy_window::PresentMode::FifoRelaxed` to
`bevy_window::PresentMode`.


## Migration Guide

- Handle `bevy_window::PresentMode::FifoRelaxed` when tweaking window
present mode manually.
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 C-Usability A targeted quality-of-life change that makes Bevy easier to use M-Needs-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bevy_window::PresentMode: The documentation for the AutoVsync and AutoNoVsync variants causes confusion.
4 participants