How to calculate application load time on iPhone?

I want to add a loading bar at the start of the game, which is a custom loading bar. for this I need to calculate the download percentage to show the download progress. Is there a way to calculate the load time of an app? please help me.

If I add Default.png to my assets folder, it will be visible during application load. How it works? I want to customize it.

0


a source to share


2 answers


You can change the Default.png to your liking, and even swap it between app launches, but it's still a static image that can't be animated. It is displayed when iPhone OS loads your application. Once the app enters your main function, you can display whatever you want - from now on, what's loaded and what's displayed under your control.



As far as displaying progress is concerned, I can only speak from the point of view of game developers. You usually know how many resources you are loading (textures, sound files, ...) so you can load eg. one resource per pass of the main cycle and displays the stroke accordingly.

+1


a source


I think your progress bar should be based on progress, not time. Remember, some hardware is faster than others. 2G iPod touch is fastest with (I think) the original iPhone the slowest.



Your image is Default.png

completely static. It looks like you will take a screenshot of your loading screen when it has zero progress and is using it.

+1


a source