Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

[Dark Shell] Win: Slow menu drawing at startup #5266

Closed
gruehle opened this issue Sep 19, 2013 · 13 comments
Closed

[Dark Shell] Win: Slow menu drawing at startup #5266

gruehle opened this issue Sep 19, 2013 · 13 comments

Comments

@gruehle
Copy link
Member

gruehle commented Sep 19, 2013

Steps to repro

  1. Launch Sprint 30 on Windows.
  2. Select Debug > New Brackets Window and watch how fast the menu is drawn in the new window
  3. Now launch Sprint 31 and do the same thing

Results

When the second window opens, you can clearly see the menus being drawn one at a time.

@ghost ghost assigned JeffryBooher Sep 19, 2013
@gruehle
Copy link
Member Author

gruehle commented Sep 23, 2013

Medium priority for now. I'm running in a VM, which could be contributing to the slowdown. Someone who isn't running a VM should check the performance differences between Sprint 30 and Sprint 31.

Also, this could be a CEF issue instead of a Dark Shell issue, since we pulled in a new CEF for Sprint 31.

@redmunds
Copy link
Contributor

I am seeing this on Native Windows 7 on my Lenovo W510. It's not always noticeable, so it may be dependent on what else is running on my computer.

@RaymondLim
Copy link
Contributor

I'm seeing it on my Win 7 (Lenovo W510), not only for secondary windows, but also for the main window.

@redmunds
Copy link
Contributor

I meant to say I'm seeing it on main window.

@peterflynn
Copy link
Member

I see it on the main window as well -- changing title to reflect that

@peterflynn
Copy link
Member

Do we know if this slows down startup overall? I can't imagine that the code in DefaultMenus normally takes that long to run. Is it just the native painting side that's slow, but it's parallelized with other startups tasks continuing on the JS side? Or does the JS side actually get stuck waiting between each call in DefaultMenus?

@peterflynn
Copy link
Member

Nominating for Sprint 34 to at least investigate a bit

@redmunds
Copy link
Contributor

I'm seeing a general slowdown during startup on Windows. Slow menu drawing maybe just be a symptom.

@redmunds
Copy link
Contributor

FBNC back to @gruehle

@gruehle
Copy link
Member Author

gruehle commented Nov 13, 2013

The menu drawing is definitely better, but startup time is still pretty slow. Should we have a new bug on the slow startup time?

@gruehle gruehle closed this as completed Nov 13, 2013
@JeffryBooher
Copy link
Contributor

@gruehle I'm not sure how much of the startup time lag is related to dark shell or not but we definitely need to profile the shell on Windows. @redmunds did some of the work and got the low-hanging fruit. My guess is that there could be a performance hit on startup with newer versions of CEF. I think as a first step we should graph startup times of various releases over a the last 6 or 8 months. I say 8 months because we had a period where we had the same version of CEF for a year and 6 months ago we started a regimen of updating CEF more frequently. We don't need to do profile every sprint release but it would be good to know with each new CEF build or even once a month. Maybe we already have that data?

@JeffryBooher
Copy link
Contributor

@dangoor I added a note about getting a graph of startup times to the performance notebook http://titanpad.com/BracketsPerf

@dangoor
Copy link
Contributor

dangoor commented Nov 13, 2013

@JeffryBooher we had been running performance tests from sprint-to-sprint, but it was a lot of work to keep up with relatively little useful info, as we saw it. Having some way to measure performance change over time would be valuable, but I wouldn't want to fill this bug with that discussion.

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

6 participants