[PR #10311] feat(desktop): add hardware acceleration toggle for Windows #13399

Open
opened 2026-02-16 18:18:15 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10311

State: open
Merged: No


Summary

Adds a setting to disable hardware acceleration on Windows.

Problem

I experienced an issue where OpenCode stops responding while video is playing in Chromium-based browsers (Chrome, Edge). Adding this toggle so users can try disabling GPU acceleration if they have similar issues.

Solution

  • Added "Disable hardware acceleration" toggle in Settings > General > Advanced (Windows only)
  • Passes --disable-gpu flag to WebView2 at startup
  • Requires app restart to take effect

Changes

  • packages/desktop/src-tauri/src/lib.rs - Read setting at startup, pass browser args
  • packages/desktop/src/index.tsx - Platform methods for get/set
  • packages/app/src/context/platform.tsx - Type definitions
  • packages/app/src/components/settings-general.tsx - UI toggle
  • packages/app/src/i18n/en.ts - Translations

Note: Apologies for the earlier mess - branch had unrelated commits and description incorrectly referenced memory leak issues. Cleaned up now.

Fixes #10424

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10311 **State:** open **Merged:** No --- ## Summary Adds a setting to disable hardware acceleration on Windows. ## Problem I experienced an issue where OpenCode stops responding while video is playing in Chromium-based browsers (Chrome, Edge). Adding this toggle so users can try disabling GPU acceleration if they have similar issues. ## Solution - Added "Disable hardware acceleration" toggle in Settings > General > Advanced (Windows only) - Passes `--disable-gpu` flag to WebView2 at startup - Requires app restart to take effect ## Changes - `packages/desktop/src-tauri/src/lib.rs` - Read setting at startup, pass browser args - `packages/desktop/src/index.tsx` - Platform methods for get/set - `packages/app/src/context/platform.tsx` - Type definitions - `packages/app/src/components/settings-general.tsx` - UI toggle - `packages/app/src/i18n/en.ts` - Translations --- **Note:** Apologies for the earlier mess - branch had unrelated commits and description incorrectly referenced memory leak issues. Cleaned up now. Fixes #10424
yindo added the pull-request label 2026-02-16 18:18:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13399