feat: 为窗口移动/尺寸调整添加可配置的刷新率节流

This commit is contained in:
zedhugh committed 2026-06-23 04:38:57 +08:00
1 parent 74b30a5d4b
commit 29e0f1e2dc
8 files changed
+40

No files matched your search

+8
View File
@@ -157,6 +157,14 @@ typedef struct zdwm_api_t {
const char *focused
);
/**
* @brief 设置窗口移动和调整大小时的刷新率
*
* @param builder 配置构建上下文
* @param fps 刷新帧率,最小 10 帧,若设置小于 10 帧会设置为 10 帧
*/
void (*set_interaction_fps)(zdwm_config_builder_t *builder, uint32_t fps);
/** @name Listener 注册
* @{ */