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

Initial high CPU load on Firefox #45

Open
boardend opened this issue Jun 27, 2024 · 0 comments
Open

Initial high CPU load on Firefox #45

boardend opened this issue Jun 27, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@boardend
Copy link
Collaborator

When Firefox is loading the qgis-js WebAssembly module, one core is 100% busy for some time. This is likely something FF does internally when loading such a large .wasm module:

  • The high CPU load goes towards zero after some time (~4min on my machine). The website is still working/responsive after that and stays idle when doing more render calls
  • The same thing happens with the 0.0.3 version, see https://boardend.github.io/qgis-js-baseline/
  • The same thing happens if I just return 0 in the main function
  • This behavior was observed in FF on Ubuntu Wayland and X11, also on FF on Windows 11
  • FF profiler only shows that the PollWrapper is busy polling
  • Hard to judge, but it seems that other larger Qt projects show similar behavior, although not as extreme as in qgis-js:
@boardend boardend added the help wanted Extra attention is needed label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant