Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(session-replay): document missing iOS replay performance options (#85188)

Daniel Danilova592034d6f73
diff --git a/docs/onboarding/session-replay/ios.tsx b/docs/onboarding/session-replay/ios.tsx
index 4a361516ac86..ed8ecd6be01d 100644
--- a/docs/onboarding/session-replay/ios.tsx
+++ b/docs/onboarding/session-replay/ios.tsx
@@ -117,6 +117,21 @@ export const getIOSSteps = (ctx: OnboardingComponentsContext): StepDefinition[]
// The screenshot may contain sensitive information, so use with caution
config.sessionReplayConfig.screenshotMode = true
+ // Experimental. Only applies when \`screenshotMode\` is enabled.
+ // Moves screenshot rendering off the main thread, which reduces jank
+ // on high refresh rate (120Hz ProMotion) displays. May trigger Xcode's
+ // Main Thread Checker and briefly freeze the app on the first capture.
+ // Default is false. Requires SDK version 3.58.1 or higher.
+ config.sessionReplayConfig.screenshotModeBackgroundCapture = false
+
+ // Minimum time (in seconds) between snapshots. Default is 1.0s.
+ // Snapshots are taken when views lay out, so this caps how often one
+ // can be captured rather than setting a fixed frame rate.
+ // Lower values can make playback smoother, at the cost of more
+ // capture work on the device.
+ // Note: called \`debouncerDelay\` before version 3.21.0
+ config.sessionReplayConfig.throttleDelay = 1.0
+
// Sample rate for session recordings. A value between 0.0 and 1.0.
// 1.0 means 100% of sessions will be recorded. 0.5 means 50%, and so on.
// Default is nil (all sessions are recorded).