Iphone animation frequency and frame rate

I am working on an application where the client wants to animate large images (305x332). The customer wants 50 frames in 1.75 seconds for animation in a loop. I find the application is very slow with this great processing. It starts slowly, responds to pressing and turning off. On the iPhone itself, the application will often crash or lock the phone. See code below. My question (s):

  • Am I doing something to cause a bad job or too many 50 frames to ask?
  • Are there any better methods for number of frames in an animation and animation speed?
  • Are there any better methods for image size in animations?

Please let me know. Here is the code ...

NSMutableArray *tempArray = [[NSMutableArray alloc] init];
for(int i = 1; i <= 50; i++)
{

    [tempArray addObject:[UIImage imageNamed:[NSString stringWithFormat:@"%@-%d-%04d.JPG",[constitution getConstitutionWord], constitution.getAnimationEnum, i]]];  
}


backgroundImage.animationImages = tempArray;
[tempArray release];
backgroundImage.animationDuration = 1.75; // seconds 
backgroundImage.animationRepeatCount = 0; // 0 = loops forever 
[backgroundImage startAnimating];   
+2
source share
3

, , iPhone. 21 fag. , , . .

, . ~ 30 305 * 322 . , . , , , - VLC iPhone, .

+4

. 40 20- PNG , UIImageview .

, . . , UIImage , , . . , N . , .

, , .

:

  • CALayers .

  • . , .

  • . .

  • . , . , , . , .

  • . , / . , (, ), .

.

+5

, OS X, iPhone OS, , . -, , , , . , CSS -. HTML5/CSS3, iPhone, .

0

Source: https://habr.com/ru/post/1709671/


All Articles