npx remotion gpu
Available from Remotion v4.0.52
Prints out how the Chrome browser uses the GPUs.
bash
The command takes the same arguments for --gl as npx remotion render and also picks up the Config.setChromiumOpenGlRenderer() option.
Try out different values to find which one is the best for your system.
Example outputbash
The output should not be used for automated parsing, as it may change inbetween any Remotion and Chrome versions.
API
--log
One of trace, verbose, info, warn, error.Determines how much info is being logged to the console.
Default
info.
--gl
Changelog
- From Remotion v2.6.7 until v3.0.7, the default for Remotion Lambda was swiftshader, but from v3.0.8 the default isswangle(Swiftshader on Angle) since Chrome 101 added support for it.
- From Remotion v2.4.3 until v2.6.6, the default was angle, however it turns out to have a small memory leak that could crash long Remotion renders.
Select the OpenGL renderer backend for Chromium. 
Accepted values:
- "angle"
- "egl"
- "swiftshader"
- "swangle"
- "vulkan"(from Remotion v4.0.41)
- "angle-egl"(from Remotion v4.0.51)
The default is null, letting Chrome decide, except on Lambda where the default is "swangle"
--chrome-modev4.0.248
One of headless-shell, chrome-for-testing. Default headless-shell. Use chrome-for-testing to take advantage of GPU drivers on Linux.