Jump to content

which value of SPRITE_BATCH_SIZE is good to optimize


GBear
 Share

Recommended Posts

i'm optimizing to increase FPS..

 

and i'm testing CONST.SPRITE_BATCH_SIZE

 

//pixi notice like this..

this.size = CONST.SPRITE_BATCH_SIZE; // 2000 is a nice balance between mobile / desktop

 

 

but 2000 is not good on mobile in my case

 

pc is not problems by SPRITE_BATCH_SIZE..

becuase always good..

 

 

but mobile is not..

 

i'm testing with samsung note3 and note 10.1 

 

but there are problems with SPRITE_BATCH_SIZE 

 

lower value is more good than 2000 use;

 

 

please tell me to optimize some ideas  

thx..

 

 

 

 

Link to comment
Share on other sites

I guess the only sure-fire way is to run some sort of test during app initialisation and pick a value that suits the FPS you're targetting. That's easier said than done though.

 

Can't you make guesses?  As in, dynamically set the value to whatever you have judged to be a good value after sniffing the user agent? (UA sniffing is bad bad, you should really test by feature rather than UA but it might be the simplest solution in your case as feature detecting, or performance detecting, is similarly error prone)

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