element-hq / element-hq/element-web

Performance degradation after high app uptime

Open
#32,151 6 comments 2 reactions 0 assignees View on GitHub
A-Electron A-Performance O-Occasional S-Major T-Defect X-Community-Supported-Platform Z-Arch
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Launch app
2. Use it, scroll through timeline, click on rooms, etc. - all relatively smooth
3. Minimize app to system tray, leave PC running for 24h
4. Come back, use app as in step 2

### Outcome

#### What did you expect?
Same performance as in step 2 above.

#### What happened instead?
Slow reaction to input, low framerate during scrolling, etc. Here's a video where after initial pointer circling I'm continuously scrolling:

https://github.com/element-hq/element-web/assets/46846000/18524a84-768a-4d5b-bd49-190707a5859d

I tried to export traces from Performance tab in Electron devtools, collected while recording video above, but it failed silently or produced empty files. I have a few screenshots from the results:

![Screenshot_20230728_193740](https://github.com/element-hq/element-web/assets/46846000/425412d8-68ee-4861-a4d7-babc4c444973)
![Screenshot_20230728_193801](https://github.com/element-hq/element-web/assets/46846000/ec50bb9e-7477-4643-af6b-945546965d7c)
![Screenshot_20230728_193807](https://github.com/element-hq/element-web/assets/46846000/eb9dc537-b20c-4350-9536-6875aac874ab)
![Screenshot_20230728_193815](https://github.com/element-hq/element-web/assets/46846000/3c6f3637-fd6c-4d02-957f-483c4066c549)

I'm running up to date Arch Linux with KDE Plasma, Xorg and proprietary Nvidia drivers. FWIW, I've never had this issue on another machine with Intel iGPU (but otherwise similar setup of Arch and KDE).

### Operating system

Arch Linux

### Application version

Element 1.11.36, Olm 3.2.14

### How did you install the app?

https://archlinux.org/packages/extra/x86_64/element-desktop/

### Homeserver

Synapse 1.88.0

### Will you send logs?

Yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.