Skip to content

Performance degradation: CSS animation of file explorer elements borders NOT on composer thread #247222

@irengrig

Description

@irengrig

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.99.3
  • OS Version: Linux

Steps to Reproduce:

  1. Have "Reduce Motion" in VS Code set to "off" (default is "auto" which sometimes means "off")
  2. Start recording a performance profile
  3. Hover over the file explorer up and down for some time
  4. stop profiling. In the performance profile, see attached pattern: border-X-color is not animated on the Composer thread, and overall CSS animation takes a lot of time (as during the hover, many explorer items are updated)

Image

Problematic place in code:

.monaco-workbench:not(.reduce-motion) .monaco-tl-indent > .indent-guide {

See this article:
https://www.smashingmagazine.com/2016/12/gpu-animation-doing-it-right/#animate-transform-and-opacity-properties-only

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberfile-explorerExplorer widget issuespapercut 🩸A particularly annoying issue impacting someone on the teamperformanceverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions