You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Skia/Linux Framebuffer] Rendering is one frame behind #24505
On a Linux Framebuffer/DRM setup, when a visual update is triggered asynchronously without any user interaction, it is not rendered immediately.
Expected behavior 🎯
The screen reflects the latest changes immediately.
How to reproduce it (as minimally and precisely as possible) 🔬
Sample attached. The app has a dispatcher timer that puts current date and time to a textblock every 5 seconds.
Launch the app - monitor textblock's updates in relation to system's time - on each update, the time shown will be 5 seconds behind of what it should be (i.e. on the (n+1)st update, the nth value is shown on the screen).
Focus the textbox - time in the textblock will immediately update to the correct latest value.
While there is the blinking cursor in the textbox, time will keep updating as it should.
Click away from the textbox. The lag will come back.
Activity
fix(framebuffer): Draw DRM frames before flipping
fix(framebuffer): Draw DRM frames before flipping