first 50000 or 5000 is big , you are working on autorunner you don't need that layout size , and 140 object is too muc , read the tips below there is some tips that you might not finde in the performance tutorial :
- manually make your collision polygons and reduce the points if possible.
- don't make very big objects , i know when you are a begginer you just drop 2000x1000 image to be a backdround
just split it for example the background for the sky used a tiled background using small 32x32 single color image.
and the backgrounds element as sprites for examples the trees and clouds and moutains each one of them in a sprite , that would be usefull to make parallax too to make the game looks nice.
- reduce the loops and timed events as much as you can , when you know the score will change only when action happens for example player passes an obstacle , there is no need to make everytick set text....that uses a lot of the devices resources with no need.
- if you need an object with 64*64 size don't make 256*256 then scale it down in the editor thats not helpful to save the platform resources.
- try not to make more than 20 sprites in a single layout. if you need something to be used in another layout don't make another oobject just use that one, to minimise the number of used assets and the app size and the loading time.
- don't use text object use sprite-font instead.
- some proprities are helpful , like pixel rounding , enabling opengl , not clearing background, fullscreen scaling.
- try not to make more than 100 event in eventsheet.
- there are some very helpful features in C2 like importing eventsheet into other layout. and making groupes and functions when you don't need some event tests to happen yet just put them in a inactive groupe and activate them when needed the same for function when you need some some actions to happen in my conditions just put them in a fonction and call it when you need it.
- use as less physic as you can you know it need a lot of mathematic calculations.
and finally in export process don't forget to compress Png even brute compression isn't bad C2 suggests normal compression because it takes less times i didn't have problems with brute compression. and don't export to phonegap it kills the game performance.
when you make project be sure to do all the above and i'm sure it's going to be fine.
ohh i mostly forgot , don't forget to destroy objects outside of layout or when it not needed anymore. some people spawn a lot of objects like in autorunner the obstacles will randomly generated and keep moving until they leave the layout view. it's not helpful at all t have 100 ojects keep moving to the infinity , and the apps makes the calculations for them while you don't need them anymore.
i hope this helpful , i'm sure you have read the performance tips in the tutorial but i have mentoned other things that might be very helpfull too.