bevyengine / bevyengine/bevy

Add a way to prefer mailbox rendering, but still have a graceful fallback to fifo

Open
#6,243 4 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Usability
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## What problem does this solve or what need does it fill?

Be able to prefer a tear-free low-input latency experience, but fall back to fifo if not possible.

- The current API of `PresentMode` allows you to specify that you want `MailBox`, but it will panic if it isn't available.
- If you select the `AutoNoVSync` option, you will get `Immediate` which will cause tearing.

Note that the docs on docs.rs are self-contradicting (fixed in https://github.com/bevyengine/bevy/issues/5831)

## What solution would you like?

Maybe the window descriptor could take a vec of modes in preferred order?

## What alternative(s) have you considered?

Just use Fifo instead.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.