Outfire Posted April 6, 2018 Share Posted April 6, 2018 I have a game with a lot of containers and sprites. I used GPU-Z for testing. After I replaced all containers and sprites with 2D, GPU load decreased on 20% What is the reason of that? What is the difference between container / sprites and container2d / sprite2d? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 6, 2018 Share Posted April 6, 2018 Matrix operations and vertex buffer size. Vanilla pixi (AFFINE) has 3x2 matrices, 2d projection is 3x3. Just a bit more matrix operations. It will be even bigger for full 3D elements, they'll have 4x4 matrices. Now you know why we dont add 3d elements in vanilla, and why did i introduced 2D instead of going full 3D. Outfire 1 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.