-
Notifications
You must be signed in to change notification settings - Fork 132
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 support for Wayland #68
Comments
Thank you. Actually, I don't understand what to use FlutterEngineOnVsync for. Could you tell me the purpose of it? |
VSync can be understood as a timed interrupt. The system will send a VSync signal every time it can proceed, and the CPU/GPU will immediately process the rendering after receiving the signal. Therefore, in Flutter, when rendering is needed, we need to monitor the VSync signal, and when a VSync signal is generated, we can start GPU rendering. and if we don't set VsyncCallback in embedder, engine will set a default VsyncCallback which is 60 fps. |
Thank you. That's quite understandable. What should this embedder do is to prepare the API so that the user program or plugins can receive Vsync, right? |
FlutterProjectArgs args = {}; |
Thanks. I'll implement vsync. |
By the way, is there any good way to detect Vsync on Linux platforms? I couldn't find it. |
For Wayland refer to this:
https://lists.freedesktop.org/archives/wayland-devel/2016-March/027465.html
…On Tue, Apr 13, 2021, 11:04 PM Hidenori Matsubayashi < ***@***.***> wrote:
By the way, is there any good way to detect Vsync on Linux platforms? I
couldn't find it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#68 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC5R3W423PLE6S573E2YEQ3TIUWALANCNFSM423WSSAQ>
.
|
Thanks! |
For DRM this is a good reference: |
In terms of Wayland backend, I think |
I'm implementing to add vsync support for Wayland, but I separed this issue into x11, drm, and wayland respectively. |
vsync is missing
The text was updated successfully, but these errors were encountered: