• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            大城小魔

            天下難事,必作于易;天下大事,必作于細

              C++博客 ::  :: 聯(lián)系 :: 聚合  :: 管理

            公告


            最新評論

            Want 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!

            posted on 2010-04-13 17:01 momor 閱讀(380) 評論(0)  編輯 收藏 引用 所屬分類: 其他
            国产美女亚洲精品久久久综合| 狼狼综合久久久久综合网| 久久久久亚洲?V成人无码| 国产成人精品久久综合| 国产一区二区久久久| 99精品久久精品一区二区| 亚洲欧洲中文日韩久久AV乱码| 97精品久久天干天天天按摩 | 国产精品嫩草影院久久| 精产国品久久一二三产区区别| 国产美女久久久| 一本一本久久A久久综合精品| 久久久久综合中文字幕| 精品国产福利久久久| 久久人人爽爽爽人久久久| 日韩AV毛片精品久久久| 国产巨作麻豆欧美亚洲综合久久| 色欲综合久久躁天天躁蜜桃| 久久久久久久91精品免费观看 | 内射无码专区久久亚洲| 91久久香蕉国产熟女线看| 久久国产精品77777| 久久综合给合久久国产免费| 伊人色综合久久天天网| 亚洲国产精品一区二区三区久久| 色综合色天天久久婷婷基地| 国内精品伊人久久久久av一坑| 伊人久久精品无码二区麻豆| 久久91精品国产91| 久久人人爽人人爽人人片av麻烦 | 精品永久久福利一区二区| 久久久久精品国产亚洲AV无码| 欧美日韩精品久久久免费观看| 精品国产91久久久久久久a| 日本一区精品久久久久影院| 精品久久一区二区| 久久99精品免费一区二区| 国产精品99久久久久久猫咪| 99久久免费国产精品| 亚洲国产成人久久综合碰| 伊人情人综合成人久久网小说|