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

Add sleep to wait for the next event in the main loop properly #43

Closed
HidenoriMatsubayashi opened this issue Mar 22, 2021 · 3 comments
Closed
Assignees
Labels
bug Something isn't working drm Topics of DRM backend x11 Topics of X11 backend

Comments

@HidenoriMatsubayashi
Copy link
Contributor

Currently, there isn't any sleep to wait for the next event in the main loop properly. Therefore, it is high CPU usage.

main.cc

  // Main loop.
  while (flutter_controller->view()->DispatchEvent()) {
    flutter_controller->engine()->ProcessMessages();
  }
@HidenoriMatsubayashi HidenoriMatsubayashi added bug Something isn't working drm Topics of DRM backend wayland Topics of Wayland labels Mar 22, 2021
@HidenoriMatsubayashi HidenoriMatsubayashi self-assigned this Mar 22, 2021
@LefixBlue
Copy link

@HidenoriMatsubayashi

That's obviously the one I was talking about when I reported my test results on the raspberrypi-64 yocto build in #4

@HidenoriMatsubayashi
Copy link
Contributor Author

Yes, I think so. Thank you for your report!

@HidenoriMatsubayashi HidenoriMatsubayashi added x11 Topics of X11 backend and removed wayland Topics of Wayland labels Mar 24, 2021
@HidenoriMatsubayashi
Copy link
Contributor Author

HidenoriMatsubayashi commented Mar 24, 2021

I've fixed this issue #45. Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working drm Topics of DRM backend x11 Topics of X11 backend
Projects
None yet
Development

No branches or pull requests

2 participants