Address performance issues with video recording in Chrome 89+/Electron 12+ #16152
Labels
type: performance 🏃♀️
Performance related
type: regression
A bug that didn't appear until a specific Cy version release
v7.0.0 🐛
Issue present since 7.0.0
Current behavior
We cannot upgrade to Electron 12 because of a major slowdown when video recording is enabled. We are stuck on 12.0.0-beta.14, the last version before the issue appeared.
The issue appears to be related to the Chrome 89 upgrade that occurred in 12.0.0-beta.16. Similar slowdowns occur when video recording in Cypress with Chrome 89, regardless of Electron version.
With some changes released after Chromium 89.0.4328.0 and before/at 89.0.4336.0, capturing screencasts via CDP is now causing performance issues. It seems like our CDP client is receiving many, many more frames before, to the point where the user's CPU is saturated with transmitting/encoding video frames, especially when users run in resource-constrained machines in CI.
The issue can be reproduced by changing the Chrome version as well, independently of Electron's CDP.
Desired behavior
Slowdown is isolated and fixed so that we can continue to ship the latest Electron version.
Relevant:
The text was updated successfully, but these errors were encountered: