Skip to content

PostHog's Session Replay feature degrades Google services performanceΒ #321

@katcinskiy

Description

@katcinskiy

I noticed that Google Street View and Google Maps are lagging when PostHog's session replay is active. Every time a screenshot is captured, there's a noticeable drop in frame rate that decreases the overall smoothness of Street View navigation.

I've observed that the smaller the config.sessionReplayConfig.debouncerDelay value, the less smooth the panorama becomes, so probably this is the root cause.

Here's my configuration:

let config = PostHogConfig(apiKey: "", host: "https://eu.i.posthog.com")

config.captureScreenViews = false
config.captureApplicationLifecycleEvents = true
config.sessionReplay = true
config.sessionReplayConfig.screenshotMode = true
config.sessionReplayConfig.captureNetworkTelemetry = true
config.sessionReplayConfig.maskAllImages = false
config.sessionReplayConfig.maskAllTextInputs = false
config.sessionReplayConfig.debouncerDelay = 1.0
PostHogSDK.shared.setup(config)

I didn't experience it with SmartLook session replay.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions