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

bevy_window::PresentMode: The documentation for the AutoVsync and AutoNoVsync variants causes confusion. #9151

Closed
LikeLakers2 opened this issue Jul 13, 2023 · 4 comments · Fixed by #9230
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Docs An addition or correction to our documentation
Milestone

Comments

@LikeLakers2
Copy link
Contributor

Hi again! I was browsing the documentation, and noticed that two of the variants of bevy_window::PresentMode have slightly confusing documentation.

First off, the AutoVsync variant on bevy_window::PresentMode mentions something about FifoRelaxed. My intuition says that this is meant to reference Mailbox, but without testing I would not know either way.

And second off, in the AutoNoVsync variant, says "Chooses Immediate -> Mailbox -> Fifo (on web)". The "(on web)" causes some level of confusion, as I'm unsure what it's meant to mean. Does that mean that Fifo is only considered when on the web? Or does it mean something else? In any case, separating the "(on web)" part out into its own sentence (i.e. "Fifo is only considered when running on the web.") may be a good idea.

Thanks for your hard work, whoever responds to this!

@LikeLakers2 LikeLakers2 added C-Docs An addition or correction to our documentation S-Needs-Triage This issue needs to be labelled labels Jul 13, 2023
@Selene-Amanita Selene-Amanita added A-Windowing Platform-agnostic interface layer to run your app in and removed S-Needs-Triage This issue needs to be labelled labels Jul 15, 2023
@Selene-Amanita Selene-Amanita added this to the 0.11.1 milestone Jul 15, 2023
@mockersf
Copy link
Member

FifoRelaxed is https://wgpu.rs/doc/wgpu/enum.PresentMode.html#variant.FifoRelaxed, but somehow this mode is not exposed in Bevy, not sure why

@VitalyAnkh
Copy link
Contributor

How about just adding the FifoRelaxed?

@LikeLakers2
Copy link
Contributor Author

How about just adding the FifoRelaxed?

That would work for one of my issues. However, it doesn't fix the other issue - the confusing "(on web)" descriptor on the AutoNoVsync variant.

Would that be something I report to wgpu's repo?

@VitalyAnkh
Copy link
Contributor

I also found "on web" confusing in https://wgpu.rs/doc/wgpu/enum.PresentMode.html#variant.AutoNoVsync. I think it's great to report this to wgpu and improve the documentation there, then bevy updates the doc back.

github-merge-queue bot pushed a commit that referenced this issue Jul 21, 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.
cart pushed a commit that referenced this issue 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-Windowing Platform-agnostic interface layer to run your app in C-Docs An addition or correction to our documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants