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

Is there a WebGL only version of PIXI? #4525

Closed
Cristy94 opened this issue Dec 9, 2017 · 4 comments
Closed

Is there a WebGL only version of PIXI? #4525

Cristy94 opened this issue Dec 9, 2017 · 4 comments
Labels
🤔 Question User question, similar to Help Wanted or Needs Help. These can be addressed whenever someone has tim 💾 v4.x (Legacy) Legacy version 4 support

Comments

@Cristy94
Copy link
Contributor

Cristy94 commented Dec 9, 2017

Now that WebGL is widely supported (97%+) I think it makes sense for PIXI to have a WebGL-only version (for both speed and bundle size reasons).

Can it be compiled so that the dist bundle doesn't include any Canvas-specific code (eg. removes everything related to the canvas renderer).

And as a "larger" question, do you think Canvas fallback is still needed?

@bigtimebuddy
Copy link
Member

Agreed! We have designed this for v5 which is currently on the “next” branch. The default build of PixiJS v5 will not have canvas, which is now treated as second class.

@Cristy94
Copy link
Contributor Author

Cristy94 commented Dec 9, 2017

I just realised after asking the question that one use case for Canvas rendering might be server-side rendering. But I don't know if anyone actually used, uses or will use PIXI for server-side rendering (on servers without GPUs).

Still, the first question is still unanswered: can the current build be bundled without the Canvas renderer?

@ivanpopelyshev
Copy link
Collaborator

Current, no. This one works without canvas: https://github.com/pixijs/pixi.js/tree/next . Even more, if you try "pixi-legacy" build from that branch, it wont work because CanvasRenderer is botched and we havent fixed it yet.

@themoonrat themoonrat added 🤔 Question User question, similar to Help Wanted or Needs Help. These can be addressed whenever someone has tim 💾 v4.x (Legacy) Legacy version 4 support labels Jul 2, 2018
@lock
Copy link

lock bot commented Jul 2, 2019

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.

@lock lock bot locked and limited conversation to collaborators Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🤔 Question User question, similar to Help Wanted or Needs Help. These can be addressed whenever someone has tim 💾 v4.x (Legacy) Legacy version 4 support
Projects
None yet
Development

No branches or pull requests

4 participants