🎥 Make videos programmatically with React
chore: add troubleshooting document for Apple Silicon and Rosetta
Dan Manastireanu383c46a5e1c6
diff --git a/packages/docs/docs/lambda/troubleshooting/rosetta.md b/packages/docs/docs/lambda/troubleshooting/rosetta.mdnew file mode 100644index 0000000000..ac9c6459c5--- /dev/null+++ b/packages/docs/docs/lambda/troubleshooting/rosetta.md@@ -0,0 +1,35 @@+---+id: rosetta+sidebar_label: Rosetta+title: Apple Silicon under Rosetta+---++Runnind Remotion on Apple Silicon (M1 chip) under Rosetta can be up to 2x slower.++The recommended way to run Remotion on Apple Silicon is using Node 16 with the native arm64 architecture.++If you encounter the following warning while using `@remotion/renderer`+```+Apple Silicon detected, but running under Rosetta (not arm64 architecture). This will cause performance issues.+Recommended actions:+ - Upgrade to Node 16.0.0 or later+ - Run Node using `arch -arm64` architecture+See https://emotion.dev/docs/troubleshooting/rosetta for more information.+```++You are either using Node 14 (which uses Rosetta on Apple M1 chips), or you are running a node version installed with `arch -x86_64`.++## Solution++1. Upgrade to Node 16 or later+1. Install Node and run it natively++For example installing node natively using nvm:+```+arch -arm64 zsh+nvm install 16+```++You can check the architecture of your shell by typing in a terminal `arch`.+You can check the Node architecture by running in a terminal `node -p process.arch`.+If both of these print out `arm64` you are good to go.