Skip to content

fix(player): NVIDIA Wayland explicit sync 与动画状态更新优化 - #71

Open
LuorixDev wants to merge 2 commits into
amll-dev:mainfrom
LuorixDev:codex/linux-nvidia-wayland-env
Open

fix(player): NVIDIA Wayland explicit sync 与动画状态更新优化#71
LuorixDev wants to merge 2 commits into
amll-dev:mainfrom
LuorixDev:codex/linux-nvidia-wayland-env

Conversation

@LuorixDev

@LuorixDev LuorixDev commented Aug 27, 2026

Copy link
Copy Markdown

改动内容

1. 配置 NVIDIA Wayland explicit sync808e7df8

  • 在 Wayland 会话且检测到 NVIDIA 设备时,于 GTK/WebKit 初始化前设置 __NV_DISABLE_EXPLICIT_SYNC=1,避免 WebKitGTK 创建原生 Wayland 表面时 explicit sync 路径失败(用户已有的环境变量优先)。
  • 顺带修复播放器事件循环:媒体控件初始化失败后通道会关闭,之前会使 select! 持续就绪并空转;现在该分支会被正确停用。

2. 减少不必要的动画状态更新80f33101

  • 低频音量计算循环(其结果只被全屏歌词页的流体背景使用)改回「仅在歌词页打开时运行」,避免歌词页关闭时每帧空算并写入 atom。
  • 播放进度更新不再每帧无条件写入 atom:每帧推进同步基准,并且仅在取整后的毫秒值真正变化时才写入。

验证

本机 KDE Wayland(KWin 6.7 / AMD Radeon 880M / WebKitGTK 4.1)实测:歌词页关闭时低频循环不再运行;播放中进度 atom 的写入按上述条件收敛。

@LuorixDev LuorixDev changed the title fix(player): configure NVIDIA Wayland explicit sync fix(player): NVIDIA Wayland explicit sync 与动画状态更新优化 Sep 10, 2026
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

Successfully merging this pull request may close these issues.

2 participants