VS Code, Chrome slow startup

Hello,

Two days ago, I installed openSUSE Tumbleweed KDE Plasma 6.

openSUSE Tumbleweed 20240820

When I install Google Chrome or VS Code using RPM packages, it takes about 9-10 seconds for these applications to open. This delay occurs not only on the first startup but also every time I close and reopen these applications. However, when I install them via Discover, the applications start up within about 1-2 seconds.

I have experienced this issue with these two applications so far.

Is Discover installing flatpaks?
I would’ve thought native packages to be faster than flatpaks, but it could be something worth investigating :mag:

Yes, Discover is installing the flatpaks. Below, I’ve attached a video showing how each of them opens. The black-iconed one is installed via flatpak for VS Code. The other one was installed using the normal sudo zypper install vscode.rpm command. Both are the same version, 1.92.2.
An identical issue occurs with Chrome in this video as well.

VS Code flatpaks vs rpm comparison

One thing I noticed is the flatpak version is not configured, it does not have a folder/workspace open and is in restricted mode. Perhaps configuring it and importing your settings might make it also slow?

Clearing out the cache/settings for the RPM version could be worth looking into.

I synchronized my VS Code settings on both versions, but the problem persists. I am also checking system logs, but I haven’t found any errors that catch my attention yet. I also cleared the RPM caches.

journalctl --follow print below logs after open and close apps:
vs code in flatpaks: Consumed 2.157s CPU time
vs code installed rpm: Consumed 5.792s CPU time.

You could try strace -f[t|T] </path/to/code> to see what’s the blocker.

When I run the command ‘code --disable-gpu --disable-software-rasterizer’, the issue in VS Code is fixed and it opens very quickly. Now I won’t observe what happens for Chrome and others.

There several hints, when searching the net, that hardware acceleration (on crappy hardware) can cause slow start of Chrome/Chromium. So disable hardware acceleration in Chrome settings and test.

1 Like

I am using DELL XPS 9520 i7 12.Gen, Nvidia GTX 3050 and 40 GB Memory. All chrome based applications have same problems. I will check hardware accelaration

–disable-gpu --disable-software-rasterizer parameters works with together for VS Code, Chrome etc. based on electron/chromium based apps.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.