摘要: 每当运行程序时,左下角的FPS就低到了10,使app很卡,原来程序主要卡的部分-(void)draw{ NSDate *startTime = [NSDate date]; [self func]; //func为调用的函数 NSLog(@"time:%f",-[startTime timeIntervalSinceNow]);}结果显示的时间远远超过了1.0/60,(1.0/60为AppDelegate.m中的[director_setAnimationInterval:1.0/60] 设置的FPS)由于[self func]比较耗时超过了1.0/60,故考虑将函数fun 阅读全文
posted @ 2013-11-15 14:12 OpenSoucre 阅读(720) 评论(0) 推荐(0) 编辑