dasbarr Posted May 12, 2017 Share Posted May 12, 2017 Hello, I need to add some 3d functionality to an existing project. That project is based on lastest PIXI build (so I can't use PIXI fork by ivan.popelyshev), and I decided to write a plugin that offers flat sprites in 3d space. On my PC (in Google Chrome) it works quite well, but when I'm testing it on Asus Zenfone 2 (also in Google Chrome) the FPS is very low, especially when my 3d objects are moving and rotating. The performance is bad even with quite a few objects (~25 visible objects and some invisible 3d containers). I added some optimizations, but it wouldn't help. Could you please tell me what can cause that performance issues? I attached plugin source code to the post. Thanks in advance for answer. P.S. Is there any new information about 3d support in PIXI itself (PIXI flip)? And is it possible to use another framework that supports 3d, along with existing project based on PIXI? plugin3d.zip Insi 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 12, 2017 Share Posted May 12, 2017 Hiya! I'm glad someone else going through 3d stuff. Yep, I can hlep you. I'll look at it a bit later, m'k? Quote Link to comment Share on other sites More sharing options...
dasbarr Posted May 17, 2017 Author Share Posted May 17, 2017 Hi, I made some research and found that in my case the framerate drop was caused not by 3d content. The performance issue was caused by large images below (background) and above 3d content. After an optimization (merging together, dividing to smaller pieces and using cacheAsBitmap property) the performance became acceptable. Anyway, I'll be glad if you take a look on my plugin and give me some advice about how it can be improved. Thanks in advance. 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.