Sign in to follow this  

Projection container2d and sprite2d increase performance?

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?

Share this post

Link to post
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.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.