Hi,
I am running my application in the iphone simulator and it is running really slow.
I have adapted the original code which is generated within the default openGL code as below:
- (void)startAnimation {
self.animationTimer = [NSTimer scheduledTimerWithTimeInterval:0.0000001f target:self selector
selector(gameLoop) userInfo:nil repeats:YES];
}
As you can see I have set the timer interval to 0.0000001f in an attempt to speed up the program, however the program takes as long as it takes.
As the iphone is quite a fast modern device,
what could I do to speed up my sluggish code and is there a way of determining which part of my code is using up the most CPU cycles?
Thanks in advance
m1
I am running my application in the iphone simulator and it is running really slow.
I have adapted the original code which is generated within the default openGL code as below:
- (void)startAnimation {
self.animationTimer = [NSTimer scheduledTimerWithTimeInterval:0.0000001f target:self selector
}
As you can see I have set the timer interval to 0.0000001f in an attempt to speed up the program, however the program takes as long as it takes.
As the iphone is quite a fast modern device,
what could I do to speed up my sluggish code and is there a way of determining which part of my code is using up the most CPU cycles?
Thanks in advance
m1