Repository navigation
Conversation
mygo v0.6.4 在 Linux 初始化时会默认设置 WEBKIT_DISABLE_DMABUF_RENDERER=1, 导致 Wayland + Mesa(Intel/AMD)环境下每帧回退到 CPU 拷贝、画布与 UI 严重掉帧。 在 runGUI 启动前检测安全的 Wayland + Mesa 环境并预设 WEBKIT_DISABLE_DMABUF_RENDERER=0, 同时对 NVIDIA、虚拟机、容器、软件渲染及用户显式配置的环境变量保持原有行为。 Fixes graphif#795 AI 工具:Google Antigravity AI 模型:Claude Opus 5.5、Gemini 4 Argon
Collaborator
|
@zty012 来看下吧 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #795
在 Wayland + Intel/AMD 核显(尤其是 2x 缩放高分屏)下,因为
mygov0.6.4默认把WEBKIT_DISABLE_DMABUF_RENDERER设成了1,WebKitGTK 渲染每帧都要走 CPU 拷贝,画布平移缩放只有 24fps 左右,UI 也很卡。参考了上游 egoist/mygo#1124 里新增的
DMABUFRendererAuto检测逻辑,在runGUI()启动前加了个判断:如果是 Linux + Wayland 会话、有 DRM 渲染节点,且不是 NVIDIA / 虚拟机 / 容器 / 软件渲染,你在环境变量里也没手动指定过WEBKIT_DISABLE_DMABUF_RENDERER,就自动设成0启用 DMA-BUF 渲染;其他情况保持原来的行为不变,避免白屏。顺便在
main_test.go里补了对应的单测。AI 工具:Google Antigravity
AI 模型:Claude Opus 5.5、Gemini 4 Argon