Preference: hardware acceleration for web pages and media (CEF GPU on/off) #1068

Open
opened 2026-10-25 19:41:35 +00:00 by sky_line · 0 comments
Owner

Request

Add a user-visible preference (Preferences > Advanced) to turn GPU acceleration in the web/media browser plugin (CEF, dullahan_host) on or off. Default stays on on every platform.

Why

#1063: a GPU page fault in Chromium's GPU process inside our media plugin led to a full GPU reset on Linux (amdgpu mode1 reset, VRAM lost), which took the viewer's Vulkan device with it. One confined report, so no default change, but users who hit this (or similar driver trouble with web content/MoAP) need a switch.

Notes

  • The plugin already supports it: media_plugin_cef.cpp handles a gpu_disabled message (mDisableGPU -> settings.disable_gpu), but nothing in the viewer sends it today.
  • New setting (e.g. BrowserHardwareAcceleration, Boolean, default true); send gpu_disabled to each CEF plugin instance before init (llviewermedia / LLPluginClassMedia, where the other browser options like cookies/javascript are sent).
  • Applies to newly created media instances; note in the UI that open web pages/media pick it up after a restart (or reload the plugins if that's simple).
  • Checkbox under Preferences > Advanced with a tooltip explaining the trade-off (CPU use on video vs. isolating GPU driver faults).
## Request Add a user-visible preference (Preferences > Advanced) to turn GPU acceleration in the web/media browser plugin (CEF, `dullahan_host`) on or off. Default stays **on** on every platform. ## Why #1063: a GPU page fault in Chromium's GPU process inside our media plugin led to a full GPU reset on Linux (amdgpu mode1 reset, VRAM lost), which took the viewer's Vulkan device with it. One confined report, so no default change, but users who hit this (or similar driver trouble with web content/MoAP) need a switch. ## Notes - The plugin already supports it: `media_plugin_cef.cpp` handles a `gpu_disabled` message (`mDisableGPU` -> `settings.disable_gpu`), but nothing in the viewer sends it today. - New setting (e.g. `BrowserHardwareAcceleration`, Boolean, default true); send `gpu_disabled` to each CEF plugin instance before init (llviewermedia / LLPluginClassMedia, where the other browser options like cookies/javascript are sent). - Applies to newly created media instances; note in the UI that open web pages/media pick it up after a restart (or reload the plugins if that's simple). - Checkbox under Preferences > Advanced with a tooltip explaining the trade-off (CPU use on video vs. isolating GPU driver faults).
sky_line added this to the Slipstream project 2026-10-25 19:41:35 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#1068
No description provided.