🎥 Make videos programmatically with React
Initial commit
Patric Salvisberg86daa26d96e9
diff --git a/packages/docs/docs/open-gl.md b/packages/docs/docs/open-gl.mdnew file mode 100644index 0000000000..d1dd80c912--- /dev/null+++ b/packages/docs/docs/open-gl.md@@ -0,0 +1,59 @@+---+image: /generated/articles-docs-cli-render.png+id: gl-options+title: GL Options+crumb: CLI Reference+---++This page serves as an overview on the different GL render backends and when to choose which one.+When rendering a video in Remotion, different GL renderer backends can be selected.++Renderer backends supported in Remotion:++- <code>"angle" </code>+- <code>"egl"</code>+- <code>"swiftshader"</code>+- <code>"swangle" </code>+- <code>null</code>++## Default renderers++For local renders, the default renderer is set to <code>null</code>, for renders in Lambda, the default is set to <code>"swangle"</code>++## Selecting the renderer backend++The renderer backend can be set in different ways.++### Via Node.JS APIs++In [`getCompositions()`](/docs/renderer/get-compositions#gl), [`renderStill()`](/docs/renderer/render-still#gl), [`renderMedia()`](/docs/renderer/render-media#gl), [`renderFrames()`](/docs/renderer/render-frames#gl), [`getCompositionsOnLambda()`](/docs/lambda/getcompositionsonlambda#gl), [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda#gl) and [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda#gl), you can pass [`chromiumOptions.gl`](/docs/renderer/render-still#gl).++### Via CLI flag++Pass [`--gl=swiftshader`](/docs/cli) in one of the following commands: [`remotion render`](/docs/cli/render), [`remotion compositions`](/docs/cli/compositions), [`remotion still`](/docs/cli/still), [`remotion lambda render`](/docs/lambda/cli/render), [`remotion lambda still`](/docs/lambda/cli/still), [`remotion lambda compositions`](/docs/lambda/cli/compositions).++### Via config file++```tsx twoslash+import { Config } from "@remotion/cli/config";++// ---cut---++Config.setChromiumOpenGlRenderer("swiftshader");+```++:::note+Prior to `v3.3.39`, the option was called `Config.Puppeteer.setChromiumOpenGlRenderer()`.+:::++The renderer backend can be set in the <code>remotion.config.ts</code>, via CLI or it can be passed as chromiumOption to the differenc APIs.++## Using the GPU++In cases where a GPU could be beneficial for rendering, it makes oftentimes sense to use the "angle" renderer. An in-depth explenation is given in this article: [Using the GPU](/docs/gpu)++## The "angle" alternative if there is no GPU available++If you are rendering in an environment which has no GPU, the "angle" renderer can't be used and "swangle" should be utilized instead.++##diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 65abdc12ae..377e417001 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -592,6 +592,7 @@ module.exports = {"miscellaneous/vercel-functions","miscellaneous/render-on-edge","compare/motion-canvas",+ "gl-options",],},{