diff --git a/src/main/lifeCycle/index.ts b/src/main/lifeCycle/index.ts index db194588..2265d009 100644 --- a/src/main/lifeCycle/index.ts +++ b/src/main/lifeCycle/index.ts @@ -169,7 +169,10 @@ class LifeCycle { initI18n() rpcServer.start() busEventList.listen() - + const isDisableGPU = picgo.getConfig(configPaths.settings.isDisableGPU) || false + if (isDisableGPU) { + app.disableHardwareAcceleration() + } if (process.env.NODE_ENV === 'development') { MemoryMonitor.start(30000) } diff --git a/src/renderer/i18n/locales/en.json b/src/renderer/i18n/locales/en.json index 4982c914..6a7d8e17 100644 --- a/src/renderer/i18n/locales/en.json +++ b/src/renderer/i18n/locales/en.json @@ -782,11 +782,15 @@ "downloadThemes": "Download Themes", "downloadThemesFailed": "Failed to download themes", "downloadThemesSuccess": "Themes downloaded successfully", + "enableAdvancedAnimation": "Enable Advanced Animation", + "enableAdvancedAnimationDesc": "Do not enable this option on low-performance devices or when GPU acceleration is disabled", "hideDockHint": "Cannot hide both dock and tray at the same time", "importThemes": "Import Themes", "importThemesFailed": "Failed to import themes", "importThemesSuccess": "Themes imported successfully", "isCustomMiniIcon": "Custom Mini Icon", + "isDisableGPU": "Disable GPU Acceleration", + "isDisableGPUDesc": "Improve compatibility but may reduce performance", "isHideDock": "Hide Dock Icon", "languageAndAppearance": "Language and Appearance", "mainMode": "Main Mode", diff --git a/src/renderer/i18n/locales/zh-CN.json b/src/renderer/i18n/locales/zh-CN.json index 8eac211e..bb2de96d 100644 --- a/src/renderer/i18n/locales/zh-CN.json +++ b/src/renderer/i18n/locales/zh-CN.json @@ -777,11 +777,15 @@ "downloadThemes": "下载主题", "downloadThemesFailed": "下载主题失败", "downloadThemesSuccess": "主题下载成功", + "enableAdvancedAnimation": "启用高级动画效果", + "enableAdvancedAnimationDesc": "不要在低性能设备上或关闭GPU加速时启用此选项", "hideDockHint": "不支持同时隐藏 dock 和托盘", "importThemes": "导入主题", "importThemesFailed": "导入主题失败", "importThemesSuccess": "主题导入成功", "isCustomMiniIcon": "是否自定义迷你窗口图标", + "isDisableGPU": "禁用 GPU 加速", + "isDisableGPUDesc": "提升兼容性,但可能降低性能", "isHideDock": "是否隐藏 Dock 图标", "languageAndAppearance": "语言和外观", "mainMode": "主窗口", diff --git a/src/renderer/i18n/locales/zh-TW.json b/src/renderer/i18n/locales/zh-TW.json index 8776f897..00996328 100644 --- a/src/renderer/i18n/locales/zh-TW.json +++ b/src/renderer/i18n/locales/zh-TW.json @@ -777,11 +777,15 @@ "downloadThemes": "下載主題", "downloadThemesFailed": "下載主題失敗", "downloadThemesSuccess": "主題下載成功", + "enableAdvancedAnimation": "啟用高級動畫效果", + "enableAdvancedAnimationDesc": "不要在低性能設備上或關閉GPU加速時啟用此選項", "hideDockHint": "不支持同時隱藏 dock 和托盤", "importThemes": "導入主題", "importThemesFailed": "導入主題失敗", "importThemesSuccess": "主題導入成功", "isCustomMiniIcon": "是否自定義迷你窗口圖標", + "isDisableGPU": "禁用 GPU 加速", + "isDisableGPUDesc": "提升兼容性,但可能降低性能", "isHideDock": "是否隱藏 Dock 圖標", "languageAndAppearance": "語言和外觀", "mainMode": "主窗口", diff --git a/src/renderer/pages/Gallery.vue b/src/renderer/pages/Gallery.vue index 92d4c19a..1fc5fba5 100644 --- a/src/renderer/pages/Gallery.vue +++ b/src/renderer/pages/Gallery.vue @@ -281,7 +281,7 @@ @wheel="handleImageWheel" @keydown="handleKeydown" > -