锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久亚洲国产成人影院,精品国产青草久久久久福利,久久久久久久尹人综合网亚洲http://www.shnenglu.com/momor/category/8838.html澶╀笅闅句簨錛屽繀浣滀簬鏄擄紱澶╀笅澶т簨錛屽繀浣滀簬緇?/description>zh-cnThu, 19 Aug 2010 17:04:24 GMTThu, 19 Aug 2010 17:04:24 GMT60鍒ゅ埆IOS榪愯騫沖彴http://www.shnenglu.com/momor/archive/2010/08/19/123981.htmlmomormomorThu, 19 Aug 2010 09:05:00 GMThttp://www.shnenglu.com/momor/archive/2010/08/19/123981.htmlhttp://www.shnenglu.com/momor/comments/123981.htmlhttp://www.shnenglu.com/momor/archive/2010/08/19/123981.html#Feedback1http://www.shnenglu.com/momor/comments/commentRss/123981.htmlhttp://www.shnenglu.com/momor/services/trackbacks/123981.html鏈潵榪欐槸QQ緹ら噷涓涓湅鍙嬬殑闂錛岀綉涓婃煡浜嗕竴涓嬶紝鐜板湪灝嗘柟娉曞ぇ姒傛暣鐞嗕竴涓嬶紝浠ヤ究浜庨渶瑕佺殑鏈嬪弸浣跨敤銆傚綋鐒訛紝浣跨敤

UIDevice綾伙紝涔熷彲浠ョ畝鍗曠殑鑾峰緱鍒板簳褰撳墠騫沖彴鏄痠phone 榪樻槸itouch,浣嗘槸浣犳墍鑾峰緱鐨勪俊鎭篃灝變粎闄愪簬姝や簡錛屽鏋滄兂鑾峰緱鏇村鐨?/div>

紜歡騫沖彴淇℃伅鍛紵浣跨敤sysctlbyname錛屽嵆鍙?/div>

鑾峰彇褰撳墠鐨勫鉤鍙頒俊鎭紝闇瑕佹煡璇w.machine 鍊鹼紝榪斿洖鍊間負浠ヤ笅瀛楃涓詫細
iPhone1,1 (iphone涓浠?
iPhone1,2 (iphone 3G)
iPhone2,1 (iphone 3Gs)
iPhone3,1 (Iphone 4)
iPod1,1     (iPod Touch 1浠?
iPod2,1     (iPod Touch 2浠?
iPod3,1     (iPod Touch 3浠?
i386           (妯℃嫙鍣?

浣跨敤鏂規(guī)硶錛?/div>

UIDeviceHardware *h=[[UIDeviceHardware alloc] init];
[self setDeviceModel:[h platformString]];   
[h release];

UIDeviceHardware.h 澶存枃浠?/div>

//
//  UIDeviceHardware.h
//
//  Used to determine EXACT version of device software is running on.

#import <Foundation/Foundation.h>

@interface UIDeviceHardware : NSObject 

- (NSString *) platform;
- (NSString *) platformString;

@end

UIDeviceHardware.m 瀹炵幇鏂囦歡

//
//  UIDeviceHardware.m
//
//  Used to determine EXACT version of device software is running on.

#import "UIDeviceHardware.h"
#include <sys/types.h>
#include <sys/sysctl.h>

@implementation UIDeviceHardware

- (NSString *) platform{
    size_t size;
    sysctlbyname("hw.machine", NULL, &size, NULL, 0);
    char *machine = malloc(size);
    sysctlbyname("hw.machine", machine, &size, NULL, 0);
    NSString *platform = [NSString stringWithCString:machine];
    free(machine);
    return platform;
}

- (NSString *) platformString{
    NSString *platform = [self platform];
    if ([platform isEqualToString:@"iPhone1,1"]) return @"iPhone 1G";
    if ([platform isEqualToString:@"iPhone1,2"]) return @"iPhone 3G";
    if ([platform isEqualToString:@"iPhone2,1"]) return @"iPhone 3GS";
    if ([platform isEqualToString:@"iPhone3,1"]) return @"iPhone 4";
    if ([platform isEqualToString:@"iPod1,1"])   return @"iPod Touch 1G";
    if ([platform isEqualToString:@"iPod2,1"])   return @"iPod Touch 2G";
    if ([platform isEqualToString:@"iPod3,1"])   return @"iPod Touch 3G";
    if ([platform isEqualToString:@"i386"])   return @"iPhone Simulator";
    return platform;
}

@end



momor 2010-08-19 17:05 鍙戣〃璇勮
]]>iPhone OpenGL Speed Tip 鈥?Turn Off Thumb Instructionshttp://www.shnenglu.com/momor/archive/2010/04/13/112466.htmlmomormomorTue, 13 Apr 2010 09:01:00 GMThttp://www.shnenglu.com/momor/archive/2010/04/13/112466.htmlhttp://www.shnenglu.com/momor/comments/112466.htmlhttp://www.shnenglu.com/momor/archive/2010/04/13/112466.html#Feedback0http://www.shnenglu.com/momor/comments/commentRss/112466.htmlhttp://www.shnenglu.com/momor/services/trackbacks/112466.htmlWant to boost your iPhone OpenGL app’s framerate with one checkbox?  It’s easy; turn off Thumb instructions.

What are Thumb instructions?

The iPhone uses the ARM 1176JZ processor, and Thumb instructions are 16-bit versions of common 32-bit ARM instructions.  By default, your Xcode project will compile with Thumb instructions.

Why use Thumb instructions?

On embedded systems like the iPhone (or any system, really, but here especially), you have to think about the space your app uses.  Smaller instructions mean smaller code in memory and on disk.  That’s a good thing!  However, there’s a trade-off: performance.

According to Apple, the cost comes from floating-point operations.   Ripping out the GLfloats from your app isn’t the way to go, so let’s learn a better way.

How do I turn off Thumb instructions?

Here’s what to do in Xcode:

  1. Open your project
  2. Choose Project -> Edit Project Settings
  3. In the Project Info window, choose the Build tab
  4. In the search box, type “thumb
  5. You should see a “Compile for Thumb” setting.  Uncheck it. (Click image to enlarge.)

  6. Clean and rebuild your project.

That’s it!  If you don’t have the setting, make sure the Active SDK is set to Device.  The setting isn’t applicable to the Simulator.

What kind of frame rate boost will I see?

I had improvements of around 20, 30, and 50%.  Hopefully you will see even bigger ones!



momor 2010-04-13 17:01 鍙戣〃璇勮
]]>
閲嶅姏鎰熷簲http://www.shnenglu.com/momor/archive/2009/05/13/82809.htmlmomormomorWed, 13 May 2009 06:10:00 GMThttp://www.shnenglu.com/momor/archive/2009/05/13/82809.htmlhttp://www.shnenglu.com/momor/comments/82809.htmlhttp://www.shnenglu.com/momor/archive/2009/05/13/82809.html#Feedback0http://www.shnenglu.com/momor/comments/commentRss/82809.htmlhttp://www.shnenglu.com/momor/services/trackbacks/82809.html

momor 2009-05-13 14:10 鍙戣〃璇勮
]]>
緇堜簬涔板埌浜嗐奤nix緙栫▼鑹烘湳銆?/title><link>http://www.shnenglu.com/momor/archive/2009/04/08/79237.html</link><dc:creator>momor</dc:creator><author>momor</author><pubDate>Wed, 08 Apr 2009 01:48:00 GMT</pubDate><guid>http://www.shnenglu.com/momor/archive/2009/04/08/79237.html</guid><wfw:comment>http://www.shnenglu.com/momor/comments/79237.html</wfw:comment><comments>http://www.shnenglu.com/momor/archive/2009/04/08/79237.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.shnenglu.com/momor/comments/commentRss/79237.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/momor/services/trackbacks/79237.html</trackback:ping><description><![CDATA[<a ><img alt="" src="http://www.shnenglu.com/images/cppblog_com/momor/s1631790.jpg" width="105" height="141"></a><br><br>綆浠嬶細<br><br>鏈功涓昏浠嬬粛浜哢nix緋葷粺棰嗗煙涓殑璁捐鍜屽紑鍙戝摬瀛︺佹濇兂鏂囧寲浣撶郴銆佸師鍒欎笌緇忛獙錛岀敱鍏鐨刄nix緙栫▼澶у笀銆佸紑婧愯繍鍔ㄩ琚栦漢鐗╀箣涓Eric S. Raymond鍊懼姏澶氬勾鍐欎綔鑰屾垚銆傚寘鎷琔nix璁捐鑰呭湪鍐呯殑澶氫綅棰嗗煙涓撳涔熶負鏈功璐$尞浜嗗疂璐電殑鍐呭銆傛湰涔﹀唴瀹規(guī)秹鍙婄ぞ緹ゆ枃鍖栥佽蔣浠跺紑鍙戣璁′笌瀹炵幇錛岃鐩栭潰 騫褲佸唴瀹規(guī)繁閭冿紝瀹屽叏灞曠幇浜嗕綔鑰呮瀬鍏舵繁鍘氱殑緇忛獙縐瘡鍜岄鍩熸櫤鎱с?br><br>鍙︽嵁錛歨ttp://www.huachu.com.cn/2005/2005unix.htm<br><br>浣滆呯畝浠嬶細<br><br>銆濮滃畯錛岃蔣浠跺伐紼嬪笀錛岀洰鍓嶄粠浜嬪崗鍚屽簲鐢ㄥ鉤鍙頒箣璁捐涓庡紑鍙戙傛妧鏈叴瓚e寘鎷琖indows 椹卞姩紼嬪簭寮鍙戯箲娉涘瀷緙栫▼銆傚拰渚嵎銆佽崳鑰鍏卞悓緲昏瘧浜嗐奀++ Templates 涓枃鐗堛嬨?br><br><br>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>  涓鐩撮兘鍚榪欐湰涔︼紝鍙槸娌℃湁鏈轟細璇昏繃錛屾嵁璇村獎鍝嶅姏涓嶅皬錛岀綉涓婂瀹冪殑璇勪環(huán)涔熸槸瑜掕船涓嶄竴錛屾湁浜烘姩鍑誨畠?yōu)畣Unix鏂囧寲瀹楁暀鍖栵紝涔熸湁浜哄笇鏈涜兘澶熷啿鐮翠笘淇楋紝浠庡凡緇忎嬌 鐢?0澶氬勾鐨勬搷浣滅郴緇熶笂紿ユ煡鎭掍箙鐨勮璁″摬瀛︺傚埌搴曟垜浠渶瑕佺殑鏄粈涔堬紝澶ф鍙湁璇昏繃榪欐湰涔︿互鍚庯紝鎵嶈兘澶熷幓璇勮堪銆傝繖涓笘鐣屽緢嫻簛錛屽崕涓界殑鍏呮枼鐫鎴戜滑錛岃糠澶辯殑涓? 瑗垮お澶氾紝甯屾湜鏇村鐨勬濊冭搴﹀拰鏂瑰紡銆?br><br><br><br> <img src ="http://www.shnenglu.com/momor/aggbug/79237.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/momor/" target="_blank">momor</a> 2009-04-08 09:48 <a href="http://www.shnenglu.com/momor/archive/2009/04/08/79237.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.ecscrm.com.cn" target="_blank">av午夜福利一片免费看久久</a>| <a href="http://www.uqtl.cn" target="_blank">久久精品无码专区免费东京热 </a>| <a href="http://www.hohong.com.cn" target="_blank">欧美一级久久久久久久大片</a>| <a href="http://www.czzhiyou.cn" target="_blank">91精品国产91热久久久久福利</a>| <a href="http://www.pu89.cn" target="_blank">免费一级欧美大片久久网</a>| <a href="http://www.in-lan.cn" target="_blank">久久国产精品-国产精品</a>| <a href="http://www.fz-tm.cn" target="_blank">久久亚洲av无码精品浪潮</a>| <a href="http://www.jianzhuhr.net.cn" target="_blank">久久精品国产免费观看三人同眠</a>| <a href="http://www.3762g.cn" target="_blank">国产精品一久久香蕉国产线看观看</a>| <a href="http://www.hjpz333.cn" target="_blank">久久婷婷综合中文字幕</a>| <a href="http://www.cheaprolex.cn" target="_blank">日韩乱码人妻无码中文字幕久久 </a>| <a href="http://www.xbfiyz.cn" target="_blank">精品99久久aaa一级毛片</a>| <a href="http://www.srdwl.cn" target="_blank">久久夜色精品国产噜噜亚洲a</a>| <a href="http://www.bihuresorthotel.cn" target="_blank">少妇久久久久久久久久</a>| <a href="http://www.gbtu.cn" target="_blank">久久夜色精品国产亚洲av</a>| <a href="http://www.fjhby.cn" target="_blank">久久精品国产网红主播</a>| <a href="http://www.97xxri.cn" target="_blank">99久久免费国产精品特黄</a>| <a href="http://www.qancen.cn" target="_blank">a级毛片无码兔费真人久久 </a>| <a href="http://www.lampserver.cn" target="_blank">国产高潮国产高潮久久久91</a>| <a href="http://www.cahe8.cn" target="_blank">国产成人精品综合久久久久 </a>| <a href="http://www.91baokao.cn" target="_blank">久久人人爽人人爽人人片AV高清</a>| <a href="http://www.xibu520.cn" target="_blank">久久综合中文字幕</a>| <a href="http://www.daleiba.cn" target="_blank">av无码久久久久不卡免费网站</a>| <a href="http://www.hdv1p7.cn" target="_blank">久久婷婷人人澡人人爽人人爱 </a>| <a href="http://www.zzc40.cn" target="_blank">人人狠狠综合88综合久久</a>| <a href="http://www.hrtexm.cn" target="_blank">久久亚洲国产欧洲精品一</a>| <a href="http://www.wwwh0930com.cn" target="_blank">无码AV中文字幕久久专区</a>| <a href="http://www.vcdordvd.cn" target="_blank">欧美精品国产综合久久</a>| <a href="http://www.mosphere.cn" target="_blank">久久久久一本毛久久久</a>| <a href="http://www.hfhyzt.cn" target="_blank">久久久久国产视频电影</a>| <a href="http://www.yuyingfus.cn" target="_blank">2020最新久久久视精品爱</a>| <a href="http://www.iioki.cn" target="_blank">亚洲午夜精品久久久久久人妖</a>| <a href="http://www.chechuai.cn" target="_blank">久久精品国产亚洲AV嫖农村妇女</a>| <a href="http://www.hrbtwlh.cn" target="_blank">久久亚洲私人国产精品vA</a>| <a href="http://www.wc78.cn" target="_blank">日韩精品久久久肉伦网站</a>| <a href="http://www.pvzj.cn" target="_blank">亚洲午夜久久久久妓女影院</a>| <a href="http://www.rhtyyls.cn" target="_blank">四虎国产精品成人免费久久</a>| <a href="http://www.xh68.cn" target="_blank">久久久噜噜噜久久中文字幕色伊伊 </a>| <a href="http://www.movie38.cn" target="_blank">精品一区二区久久</a>| <a href="http://www.sglshoes.cn" target="_blank">欧美一区二区精品久久</a>| <a href="http://www.bbs020.cn" target="_blank">狠狠精品干练久久久无码中文字幕</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>