我发现我正在制作的游戏在较新的iPhones (5,5s)上表现出色,但像4和4s这样的旧游戏就不那么棒了(特别是4)。对于检测用户的手机类型,并为他们提供较低质量的体验以提高性能,您有什么想法?另外,如果您这样做,您提出了哪些最佳实践?
发布于 2014-05-06 00:24:56
尝试检测iphone型号,如下所示...
NSString *deviceType = [UIDevice currentDevice].model;
if([deviceType isEqualToString:@"iPhone 4"]) {
//Then, based on the model type, limit the frame rate.
skView.frameInterval = 2;
//setting the frame interval to 2 clips the fps to 30.
}https://stackoverflow.com/questions/23476527
复制相似问题