Jump to content

Projection container2d and sprite2d increase performance?


Outfire
 Share

Recommended Posts

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?
 

Link to comment
Share on other sites

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.

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...