AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[Bug] the font selector list in the UI experiences lag.

Open LucasXu0 opened this issue 1 year ago • 2 comments

Bug Description

After upgrading to version 0.5.8, the font selector list in the UI experiences lag.

How to Reproduce

  • open settings page
  • click the font selector list
  • scroll down

Expected Behavior

The UI experience should be smooth.

Operating System

Desktop

AppFlowy Version(s)

0.5.8

Screenshots

Screenshot 2024-05-22 at 10 02 00

Additional Context

Use ListView to lazily load the fonts.

LucasXu0 avatar May 22 '24 02:05 LucasXu0

On my system the long load time even sometimes leads to the system detecting a crash of the app and asking me if I want to force quit AppFlowy. It fully utilises one core and adds about 180MB RAM to the used memory. But I also noted a higher memory usage in general with the recent release.

suntorytimed avatar May 22 '24 11:05 suntorytimed

On my system the long load time even sometimes leads to the system detecting a crash of the app and asking me if I want to force quit AppFlowy. It fully utilises one core and adds about 180MB RAM to the used memory. But I also noted a higher memory usage in general with the recent release.

This is my bad, I used the Material DropDown widget, but seems that it's not fully optimized for long dropdowns, thus it renders everything on first load. Causing a lot of requests and google fonts.

Xazin avatar May 22 '24 11:05 Xazin