Jump to content

PIXI.autoDetectRenderer returning different renderer in version 3


shinybob
 Share

Recommended Posts

I'm not sure if this is a bug so thought I'd throw it out there.

 

I just finished upgrading my app to pixi.js V3 and noticed a big drop in performance on a specific device (Galaxy Tab 3). I was a little perplexed by this as I have seen performance improvements on other devices since the upgrade. On further inspection it seems that pixi.js V2 is returning WebGL where as pixi.js V3 is returning Canvas as the renderer, hence the decrease in performance.

 

Can anyone offer any in-sight into this?

Link to comment
Share on other sites

Here is the autoDetectRenderer function:

https://github.com/GoodBoyDigital/pixi.js/blob/master/src/core/index.js#L77

Which calls utils.isWebGLSupported:

https://github.com/GoodBoyDigital/pixi.js/blob/master/src/core/utils/index.js#L205-L224

Possibly the stencil buffer is not supported on those devices? I have a bug open to address times where you want to use webgl, and know you don't want Graphics (so no stencil buffer): https://github.com/GoodBoyDigital/pixi.js/issues/1738

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...