Skip to content

Fix abnormal GPU usage on macOS with vibrancy effects#1215

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-gpu-usage-issue
Draft

Fix abnormal GPU usage on macOS with vibrancy effects#1215
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-gpu-usage-issue

Conversation

Copy link
Contributor

Copilot AI commented Dec 14, 2025

Description

macOS with vibrancy effects enabled causes excessive GPU usage (>70%) when the launcher window is open, normalizing only when minimized. This occurs particularly on Apple Silicon Macs running recent macOS versions.

Changes

Electron renderer optimization:

  • Added backgroundThrottling: true to all webPreferences configurations to throttle animations/timers when windows are backgrounded

macOS-specific Chromium flags:

  • Disabled CalculateNativeWinOcclusion feature on Darwin platform to eliminate unnecessary GPU cycles from window occlusion detection
  • This flag is particularly expensive with macOS compositor vibrancy effects

Technical Context

The vibrancy sidebar effect on macOS triggers continuous compositor repaints. Chromium's native window occlusion detection compounds this by performing GPU-intensive calculations on each frame. Disabling this feature trades marginal window management optimization for substantial GPU usage reduction.

Expected GPU usage: 10-20% (down from 70%+)

Original prompt

This section details on the original issue you should resolve

<issue_title>macOS 26 中的异常GPU占用</issue_title>
<issue_description>### 是否已经有人报告过这个问题?

  • 我已经搜索过现有的问题

启动器版本

0.53.1

操作系统

Mac

架构

ARM

当前行为

打开启动器窗口时,GPU占用率异常升高

Image

期望行为

GPU占用10~20%

复现步骤

在Mac Mini 2024 上使用macOS 26 打开启动器即触发
最小化后恢复正常

其他信息?

No response</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: ci010 <8425057+ci010@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix abnormal GPU usage in macOS 26 Fix abnormal GPU usage on macOS with vibrancy effects Dec 14, 2025
Copilot AI requested a review from ci010 December 14, 2025 12:17
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.

macOS 26 中的异常GPU占用

2 participants