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

Vsync + minimal frame buffering #4100

Closed
Remmirad opened this issue Aug 30, 2023 · 1 comment
Closed

Vsync + minimal frame buffering #4100

Remmirad opened this issue Aug 30, 2023 · 1 comment

Comments

@Remmirad
Copy link

Is your feature request related to a problem? Please describe.

To enable Vsync one can use the PresentModes Fifo or FifoRelaxed which both buffer roughly 3 frames. This causes some input lag that Id like to avoid while still having vsync active and a framerate limitation to the displays refreshrate (blocking get_current_texture). Mailbox protects against tearing and reduces frame buffering but seems to miss the framerate limitation?

Describe the solution you'd like

A PresentMode that buffers only one frame like Mailbox but limits framerate to the display refreshrate like e.g. Fifo does. Also this could be included in AutoVsync as the first option?

Describe alternatives you've considered

Maybe the queue length of e.g. Fifo could be customizable?
This can also be done with a manual framerate limiter and Mailbox so if a new/changed mode is not worth the effort this still can be achieved manually but it would be nice to have it built in.

Additional context

@cwfitzgerald
Copy link
Member

I think this use case will be fully covered by the apis under #2869 - though the ability to limit frame buffer varies.

@cwfitzgerald cwfitzgerald closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants