Vorion Posted December 20, 2019 Share Posted December 20, 2019 Hi, I'm using Babylon.js for my game and pixi.js for the gui. The welcome message of Babylon.js (4.0.3) says it's using WebGL2, but Pixi.js (5.2.0) only claims to be using WebGL1 (console output). Here's a jsfiddle https://jsfiddle.net/vje0tg81/ When I'm just using Pixi.js, it also seems to use WebGL2, like here https://jsfiddle.net/bmg58e40/ I've tried it with Firefox 71.0 and Chrome 79.0.3945.88, both 64bit using Windows 10. Is this expected behaviour for using both at the same time? Does it even matter in terms of performance or features? Thanks Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 21, 2019 Share Posted December 21, 2019 initFromContext doesn't detect version of existing context. https://github.com/pixijs/pixi.js/blob/dev/packages/core/src/context/ContextSystem.js#L84 Care to make a PR or should I do it? As for performance - webgl2 is the same as webgl. Also it doesnt exist on apple devices. Quote Link to comment Share on other sites More sharing options...
Vorion Posted December 21, 2019 Author Share Posted December 21, 2019 Since I don't have much time at the moment, it will probably be better, if you can fix it. Thanks for your fast answer Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.