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

Perfromance: CPU100% in OpenGL mode on a big map when computer does not have GPU even the graph is static #10473

Open
jiajun opened this issue Apr 24, 2024 · 2 comments
Assignees
Labels
👍 Not A Bug Verified issue and is working as intended.

Comments

@jiajun
Copy link

jiajun commented Apr 24, 2024

Current Behavior

Our machine is for industry which using Intel Xeon without GPU. We created an application based on pixi v7.4.2 in the default openGL mode. When opened a big map (including more than 60,000 rects), the CPU becomes always 95%-100%, even after the map rendered without any movement.

Expected Behavior

The CPU usage should go down after rendering or moving the map.

Steps to Reproduce

let me know if you need a sample.

Environment

  • pixi.js version: v7.4.2
  • Browser & Version: Electron 25.2.0
  • OS & Version: e.g. Windows 10

Possible Solution

No response

Additional Information

No response

@jiajun jiajun changed the title Bug: CPU100% in OpenGL mode when computer does not have GPU even the graph does not move Bug: CPU100% in OpenGL mode on a big map when computer does not have GPU even the graph is static Apr 24, 2024
@GoodBoyDigital
Copy link
Member

i would try bumping to v8 - thous should run static content much faster!

@GoodBoyDigital
Copy link
Member

couple of other approaches:

  • render the view to a texture - and if nothing moves, just keep re rendering the texture to the viewer.
  • add culling so you only render what you see
    hope that helps!

@GoodBoyDigital GoodBoyDigital changed the title Bug: CPU100% in OpenGL mode on a big map when computer does not have GPU even the graph is static Perfromance: CPU100% in OpenGL mode on a big map when computer does not have GPU even the graph is static Apr 29, 2024
@GoodBoyDigital GoodBoyDigital added the 👍 Not A Bug Verified issue and is working as intended. label Apr 29, 2024
@GoodBoyDigital GoodBoyDigital self-assigned this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👍 Not A Bug Verified issue and is working as intended.
Projects
None yet
Development

No branches or pull requests

2 participants