Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Native tabs super slow on Electron v4 #19611

Closed
1 task done
rafeca opened this issue Jun 28, 2019 · 3 comments
Closed
1 task done

Native tabs super slow on Electron v4 #19611

rafeca opened this issue Jun 28, 2019 · 3 comments

Comments

@rafeca
Copy link
Contributor

rafeca commented Jun 28, 2019

Prerequisites

Description

OSX native tabs operations super slow under Electron v4

Steps to Reproduce

  1. Build Atom from the Electron v4 branch.
  2. Run it and enable native tabs by clicking on the menu "View -> Show Tab Bar"
  3. Create a new window and see the delay.

Expected behavior:

No delay when creating windows, merging windows, etc.

Actual behavior:

There's some delay that blocks the Atom UI for 5s-10s

Reproduces how often:

100%

Versions

Atom v1.40.0 dev under Electron v4.2.5

Additional Information

macOS version: 10.14.5 (18F132)
(only reproducible on macOS since this option is only available here).

@rafeca
Copy link
Contributor Author

rafeca commented Jun 28, 2019

After some investigation, this seems to be caused by the calls we do to remote.getCurrentWindow() to get the window dimensions and store them for next session.

This call somehow got much slower in some situations on Electron v4, I've created an issue on the electron repository.

@rafeca
Copy link
Contributor Author

rafeca commented Jun 28, 2019

Ok, more investigation done: seems like there are two separate issues:

  1. The really anormal slowness when using native tabs: This was fixed by fix: lagging when using tabbed window (4-2-x) electron/electron#18314 which got included in Electron v4.2.2. Somehow I was testing with a local build that used Electron v4.2.0 and I could see the issue. Once I upgraded to v4.2.5 the issue was gone 🎉
  2. The slight slowness when resizing the Atom window. This is caused by remote.getCurrentWindow() slowness on Electron v4 electron/electron#19027 and is not fixed yet, but we can workaround it by adding some throttling to the resize listener.

I'm gonna close this issue since it was about native tabs which is fixed

@rafeca rafeca closed this as completed Jul 1, 2019
@lock
Copy link

lock bot commented Dec 28, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Dec 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant