krille-chan / fluffychat

The cutest instant messenger in the [matrix]
https://fluffychat.im/
GNU Affero General Public License v3.0
1.05k stars 176 forks source link

Linux CPU usage at ~5% for blinking the cursor #148

Closed krille-chan closed 5 months ago

krille-chan commented 1 year ago

Description

Being a new user, I was checking out FluffyChat behavior, and noticed that it was constantly using 2-8% CPU, according to top(1). The only thing "moving" was the chat text cursor blinking. I'm curious if it can be optimized to save battery, or if this is an unavoidable side-effect of Flutter's rendering pipeline.

Note that the CPU usage is high even when my window manager has unmapped the window because it's on another workspace.

To Reproduce

  1. Start FluffyChat. Open a chat so the input text box is shown.
  2. Focus the input text box so the cursor starts blinking.
  3. Check CPU usage. It is 5%.
  4. Click anywhere else so the text cursor disappears.
  5. Check CPU usage. It is zero.

Additional information:

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 120 days with no activity.

github-actions[bot] commented 5 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.