Pixi.js: Ubuntu - WebGL slows to a crawl and crashes

Created on 21 Mar 2017  ·  3Comments  ·  Source: pixijs/pixi.js

I'm having an issue on a game I'm working on that works perfectly on my weak MacBook Air but comes to a crawl on my desktop which is far beefier, running Ubuntu. Issues are present in both Firefox and Chrome although it seems like only Chrome ends up crashing.

It's difficult for me to isolate the code as it's an intertwined game that is not finished. I included a picture of the chrome profiler though. PC runs the bunny benchmark fine. Using latest version of pixi but have tried a few previous releases as well.

profile

Any thoughts?

🤔 Question

Most helpful comment

@ivanpopelyshev Thanks for the hint I seem to have found the issue! I had a few objects with an attached Graphics that drew two rectangles every frame, but I forgot to clear() beforehand. Adding that in seems to have solved it.

All 3 comments

Something about Graphics class. GraphicsRenderer is the problem. How exactly do you use it?

@ivanpopelyshev Thanks for the hint I seem to have found the issue! I had a few objects with an attached Graphics that drew two rectangles every frame, but I forgot to clear() beforehand. Adding that in seems to have solved it.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Makio64 picture Makio64  ·  3Comments

finscn picture finscn  ·  3Comments

courtneyvigo picture courtneyvigo  ·  3Comments

gaccob picture gaccob  ·  3Comments

SebastienFPRousseau picture SebastienFPRousseau  ·  3Comments