Skip to content

perf: Chat page scrolling jitter on devices without dedicated GPU #162

Closed

Description

@larryro

Problem

When scrolling the chat page on devices without a dedicated GPU, there is a visible jitter/ripple effect during scrolling. The effect stops when scrolling stops. This issue does not occur on devices with a dedicated GPU.

Root Cause

Several CSS effects in the chat interface are GPU-intensive and cause performance issues on devices relying on integrated graphics:

  1. backdrop-blur-sm on the scroll-to-bottom button (chat-interface.tsx:865)

    • backdrop-blur is one of the most expensive CSS effects, requiring real-time background blurring during scroll
  2. sticky bottom-0 positioning for ChatInput inside the scroll container (chat-interface.tsx:843)

    • Sticky elements inside overflow containers require position recalculation on every frame
    • No hardware acceleration hints (will-change, transform: translateZ(0))
  3. Complex shadows and border-radius combined with scrolling

    • These require repainting during scroll without GPU acceleration

Suggested Fixes

  1. Remove or replace backdrop-blur-sm with a solid background color
  2. Add will-change: transform or transform: translateZ(0) to sticky elements to hint hardware acceleration
  3. Consider moving ChatInput outside the scroll container and using flex layout
  4. Add contain: paint to the scroll container to limit repaint scope
  5. Add overscroll-behavior: contain to prevent scroll chaining

Environment

  • Reproducible on devices without dedicated GPU (integrated graphics only)
  • Not reproducible on devices with dedicated GPU
  • Browser: All major browsers affected

Related Files

  • services/platform/app/(app)/dashboard/[id]/chat/components/chat-interface.tsx
  • services/platform/app/(app)/dashboard/[id]/chat/components/chat-input.tsx
  • services/platform/app/(app)/globals.css

Activity

  1. added
    perf
    and removed on Feb 1, 2026
  2. added a commit that references this issue on Apr 7, 2026
    df139f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugperfpriority: lowservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions