foxyfox Posted August 12, 2020 Share Posted August 12, 2020 (edited) I am thinking of making all my sprites Pixi-heaven sprites. new PIXI.heaven.Sprite() instead of the usual new Pixi.sprite(). Now let's assume I don't use any Pixi-heaven functions at all. Is there a performance hit from making all my sprites Pixi-heaven sprites? Edited August 12, 2020 by foxyfox Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 12, 2020 Share Posted August 12, 2020 Yes, fragment shader is a bit heavier on math operations, and vertex buffer has +1 byte per vertex, but so far i didnt encounter a single instance when it was slower Quote Link to comment Share on other sites More sharing options...
foxyfox Posted August 12, 2020 Author Share Posted August 12, 2020 Thanks for the reply, Ivan! I really appreciate it. 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.