Wayland实时性扩展研究与实现
投稿时间:2026-01-05  修订日期:2026-01-14  点此下载全文
引用本文:
摘要点击次数: 25
全文下载次数: 0
作者单位邮编
申定潜* 江苏自动化研究所 222000
基金项目:江苏省科技计划项目(BE2023069)
中文摘要:近年来,Wayland协议因其相较于X11协议更简洁高效的特性,在嵌入式Linux图形系统中逐渐普及。然而,标准Wayland协议缺乏实时属性支持,导致所有客户端事件在合成器中被同等处理;当采用共享内存机制且CPU高负载时,关键客户端的事件容易被阻塞,造成帧提交率波动增大。针对该问题,提出一种基于wlroots框架的Wayland实时性协议扩展方法:在协议层引入实时属性协商接口,并在合成器中实现基于实时属性的事件优先排序机制。实验表明,在高负载场景下,采用共享内存机制的关键客户端在注册该扩展后,帧提交率波动有所减小,最低帧提交率得到改善。
中文关键词:嵌入式Linux  Wayland协议  Wlroots  图形系统
 
RESEARCH AND IMPLEMENTATION OF WAYLAND REAL-TIME EXTENSION
Abstract:In recent years, the Wayland protocol has gradually become popular in embedded Linux graphics systems due to its more concise and efficient features compared to the X11 protocol. However, the standard Wayland protocol lacks real-time attribute support, resulting in all client events being processed equally in the compositor; When a shared memory mechanism is adopted and the CPU is under high load, events of key clients are prone to being blocked, resulting in increased fluctuations in the frame submission rate. For this problem, a Wayland real-time protocol extension method based on the wlroots framework is proposed: a real-time attribute negotiation interface is introduced at the protocol layer, and an event prioritization mechanism based on real-time attributes is implemented in the compositor. Experiments show that in high-load scenarios, after key clients adopting the shared memory mechanism register this extension, the frame commit rate fluctuation is reduced and the minimum frame commit is improved.
keywords:Embedded Linux  Wayland protocols  Wlroots  Graphics system
查看全文   查看/发表评论   下载pdf阅读器