Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix: update mediapipe notice path and clarify renderer v8 flag scope

atharva9167j60803e6311f7
diff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.md
index 6bfe88fb4..d53cfc019 100644
--- a/THIRD-PARTY-NOTICES.md
+++ b/THIRD-PARTY-NOTICES.md
@@ -71,7 +71,7 @@ distributed by their own registries, not redistributed inside our binaries.
- **Components**: `selfie_segmentation.tflite`,
`selfie_segmentation_landscape.tflite` and the `selfie_segmentation_landscape.onnx`
- derived from them, shipped inside `app.asar` under `dist/mediapipe/`.
+ derived from them, shipped under `resources/mediapipe/`.
- **License**: Apache-2.0 — <https://google.github.io/mediapipe/solutions/selfie_segmentation>.
Copyright The MediaPipe Authors.
- The `.onnx` is a **derived work**, generated from the vendored `.tflite` by
diff --git a/electron/main.ts b/electron/main.ts
index 5dd65ecd6..6641b972a 100644
--- a/electron/main.ts
+++ b/electron/main.ts
@@ -77,7 +77,9 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
// HUD/tray/menu. Parsed before any GUI side effects; see electron/cli/.
const cliCommand = parseCliArgs(process.argv, app.isPackaged ? 1 : 2);
-// Optimize V8 heap allocation to reduce memory footprint across processes.
+// Optimize V8 heap allocation to reduce memory footprint across renderer processes.
+// Note: app.commandLine.appendSwitch('js-flags') does not affect the main process V8 isolate,
+// which is already initialized before main.ts executes.
app.commandLine.appendSwitch("js-flags", "--optimize-for-size");
// Use Screen & System Audio Recording permissions instead of the CoreAudio Tap API on macOS.