Skip to content

🎥 Make videos programmatically with React

improvements

Patric Salvisberg119faa137933
diff --git a/packages/docs/docs/open-gl.md b/packages/docs/docs/open-gl.md
index 98b468393d..8405efc715 100644
--- a/packages/docs/docs/open-gl.md
+++ b/packages/docs/docs/open-gl.md
@@ -5,8 +5,8 @@ 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.
+This page tries to give an overview on the different GL render backends and when to choose which one.
Renderer backends supported in Remotion:
@@ -19,7 +19,7 @@ Renderer backends supported in Remotion:
## 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>
+for renders in Lambda, the default is set to <code>"swangle"</code>.
## Selecting the renderer backend
@@ -29,10 +29,6 @@ The renderer backend can be set in different ways.
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
@@ -47,14 +43,18 @@ Config.setChromiumOpenGlRenderer("angle");
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.
+### Via CLI flag
-## Using the GPU
+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).
-In cases where a GPU could be beneficial for rendering, it can often make sense to use the "angle" renderer. An in-depth explenation is given in this article: [Using the GPU](/docs/gpu). Note that we recommend to split the render up in multiple parts when rendering large videos while using "angle", since sometimes renders can fail due to memory leaks.
-It's also worth mentioning, that currently github acctions will fail when "angle" is used, since actions don't have a GPU. Unfortunately, there is currently no work around.
+:::note
+If a CLI flag gets passed, the settings defined in the <code>remotion.config.ts</code> will be overwritten.
+:::
+
+## Using the GPU
-##
+In cases where a GPU could be beneficial for rendering, it can often make sense to use the "angle" renderer. An in-depth explenation when and how to use it is given in [this article](/docs/gpu). Note that we recommend to split the render up in multiple parts when rendering large videos while using "angle", since sometimes renders can fail due to memory leaks.
+It's also worth mentioning, that currently GitHub Actions will fail when using <code>angle</code>, since actions don't have a GPU. Unfortunately, there is currently no work around.
## The "angle" alternative if there is no GPU available