Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] High CPU usage by _BlockSelectionAreaState._updateSelectionIfNeeded #1035

Open
saif-ellafi opened this issue Feb 14, 2025 · 1 comment

Comments

@saif-ellafi
Copy link
Contributor

Bug Description

Hello everyone,

I am profiling my app, due to high CPU usage on idle. Apparently the open Appflowy editors are straining CPU. Any thoughts on this?

Image

Will continue investigating in the meantime

How to Reproduce

Have one or more appflowy editors open in the app.

Expected Behavior

Idle to be more idle?

Operating System

MacOS is where I profiled

AppFlowy Editor Version(s)

5.0.0

Screenshots

No response

Additional Context

No response

@saif-ellafi
Copy link
Contributor Author

saif-ellafi commented Feb 14, 2025

Looks like this is the cursors' tick and position sync. Not much to do I guess.
The only possible thing perhaps would be to check if a 10ms or 50ms timer could do the job rather than every frame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant