Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.31 KB

File metadata and controls

49 lines (34 loc) · 1.31 KB
title GPU Acceleration

GPU acceleration enables GPU-accelerated rendering in Kernel browsers, providing enhanced performance for graphics-intensive workloads.

GPU acceleration is only available for headful browsers and does not support [standby mode](/browsers/standby). GPU browsers have [separate pricing](https://kernel.sh/pricing) from headless or headful browsers.

Enable GPU acceleration

Set the gpu parameter to true when creating a browser:

```typescript Typescript/Javascript import Kernel from '@onkernel/sdk';

const kernel = new Kernel();

const kernelBrowser = await kernel.browsers.create({ gpu: true });


```python Python
from kernel import Kernel

kernel = Kernel()

kernel_browser = kernel.browsers.create(
    gpu=True
)

You can also enable GPU acceleration in the dashboard when deploying a browser under Advanced Configuration.

Use cases

GPU acceleration is useful for:

  • High performance live view streaming
  • Rendering complex 3D graphics or WebGL content
  • Video processing and playback
  • Canvas-heavy applications

Availability

GPU acceleration is available on Start-Up and Enterprise plans. Due to limited capacity during the research preview, GPU-enabled browsers may not always be available.