dearcj Posted July 21, 2015 Share Posted July 21, 2015 HiI've being making games with pixi for a quite timeAnd now when I've moved from pixi 2 to pixi 3.0 I got super slow performance with my Samsung Galaxy S4Mobile Firefox is fast I got about 30-40 fpsAnd I got 10 fps in ChromeI thought that the problem could be in requestAnimationFrame callSo I've used this functionwindow.requestAnimFrame = function(){return (window.requestAnimationFrame ||window.webkitRequestAnimationFrame ||window.mozRequestAnimationFrame ||window.oRequestAnimationFrame ||window.msRequestAnimationFrame ||function(/* function */ callback){window.setTimeout(callback, 1000 / 60);});}();And there is still low performance in chromeAlso if I'm using PIXI.WebGLRenderer instead of autoDetectRenderer it's not working, and I got black screen on my S4 and firefox doing fine Quote Link to comment Share on other sites More sharing options...
xerver Posted July 21, 2015 Share Posted July 21, 2015 Sounds like you are falling back to the canvas renderer, even though you used to not fall back in v2. This is because v3 requires the Stencil Buffer in WebGL. Likely your device doesn't support it. Quote Link to comment Share on other sites More sharing options...
dearcj Posted July 21, 2015 Author Share Posted July 21, 2015 Sounds like you are falling back to the canvas renderer, even though you used to not fall back in v2. This is because v3 requires the Stencil Buffer in WebGL. Likely your device doesn't support it.Ok, thanksBut in firefox WebGLRenderer version works finehow can this be? Quote Link to comment Share on other sites More sharing options...
dearcj Posted July 21, 2015 Author Share Posted July 21, 2015 Also pixi says "Uncaught Error: This browser does not support webGL. Try using the canvas renderer" only in Chrome Quote Link to comment Share on other sites More sharing options...
xerver Posted July 21, 2015 Share Posted July 21, 2015 Sounds like the Chrome version you are using doesn't support the stencil buffer like is required in v3. Quote Link to comment Share on other sites More sharing options...
dearcj Posted July 21, 2015 Author Share Posted July 21, 2015 ok here's fixhttp://forum.xda-developers.com/galaxy-s6-edge/help/webgl-disabled-chrome-t3080336latest update ruins webgl on my S4also same problem occurs on S6 Quote Link to comment Share on other sites More sharing options...
AshleyScirra Posted July 22, 2015 Share Posted July 22, 2015 Visit chrome://gpu in Chrome and it will tell you what features are hardware-accelerated. If a feature isn't hardware accelerated and there's no OS update for your phone, there's not a lot you can do other than change the flags in chrome://flags to force hardware acceleration, or just use a different browser... Quote Link to comment Share on other sites More sharing options...
xerver Posted July 23, 2015 Share Posted July 23, 2015 Also related: https://code.google.com/p/chromium/issues/detail?id=512992https://twitter.com/Tojiro/status/624358179816763392 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.