Herbert Posted March 24, 2017 Share Posted March 24, 2017 Hi guys, I tested my game on ipad4, and sometimes a few sprites can not be displayed(most of the time is the bg image), but the rest are rendered normally, since it does not happen every time, and it only happen on ipad4, moreover, it does not pop out any error, it's really hard to find the cause, does anyone know what could be the possible cause to this sort of partially render problem? Quote Link to comment Share on other sites More sharing options...
alex_h Posted March 24, 2017 Share Posted March 24, 2017 Are the images in a texture atlas? Or individual images? Quote Link to comment Share on other sites More sharing options...
Herbert Posted March 27, 2017 Author Share Posted March 27, 2017 hi alex_h it is atlas Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 27, 2017 Share Posted March 27, 2017 what version of pixi? we had something like that in 4.0 Quote Link to comment Share on other sites More sharing options...
Herbert Posted March 27, 2017 Author Share Posted March 27, 2017 4.3.4 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 27, 2017 Share Posted March 27, 2017 do you use masks or filters? upd. try call renderer.gl.flush() after each render() Quote Link to comment Share on other sites More sharing options...
Herbert Posted March 27, 2017 Author Share Posted March 27, 2017 I use both in my project, but at the begining of the game, the filters is not used, only the mask Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 27, 2017 Share Posted March 27, 2017 try call "renderer.gl.flush()" after "renderer.render()" Quote Link to comment Share on other sites More sharing options...
Herbert Posted March 27, 2017 Author Share Posted March 27, 2017 by the way, I remember in early version 4, mask won't work in my project until I set renderer.maskManager.enableScissor = false; could it be the problem? Quote Link to comment Share on other sites More sharing options...
Herbert Posted March 27, 2017 Author Share Posted March 27, 2017 ok, I will try when I get my ipad4, it's not around me now. so if "renderer.gl.flush()" work, should I keep it in my code? does it have any side effect? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 27, 2017 Share Posted March 27, 2017 no side effects. we added it in 4.4.0, i think, there was a problem like yours. Oh, and I did found error in masks , it was critical fix of 4.3.5 - you can download it! its just like 4.3.4 but with fixed masks Quote Link to comment Share on other sites More sharing options...
Herbert Posted March 29, 2017 Author Share Posted March 29, 2017 sorry it takes so long, as I tested, neither call "renderer.gl.flush()" or update to 4.4.3 work, there are still missing objects sometimes, but I found out this only happen to "the safari on the ipad4", it is quite limited actually. and the missing objects will show up after resizing (turning the screen portrait) 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.