• <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++博客 ::  :: 聯系 :: 聚合  :: 管理

            公告


            最新評論

            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 閱讀(365) 評論(0)  編輯 收藏 引用 所屬分類: 其他
            亚洲国产精品无码久久久蜜芽| 国内精品久久久久影院网站 | 久久久久这里只有精品 | 久久99久久成人免费播放| 性高朝久久久久久久久久| 香蕉久久夜色精品升级完成| 久久国产精品久久精品国产| 久久97久久97精品免视看秋霞| 国内精品久久久久影院薰衣草 | 亚洲AV无码一区东京热久久| 日本免费一区二区久久人人澡| 久久夜色撩人精品国产| 久久国产乱子伦免费精品| 日本亚洲色大成网站WWW久久| 久久偷看各类wc女厕嘘嘘| 久久久久久一区国产精品| 久久久久亚洲AV片无码下载蜜桃| 很黄很污的网站久久mimi色| 日本久久久久亚洲中字幕| 亚洲伊人久久成综合人影院 | 天天综合久久一二三区| 久久九九有精品国产23百花影院| 无码任你躁久久久久久老妇App| 久久精品成人免费网站| 久久久噜噜噜久久熟女AA片| 奇米影视7777久久精品人人爽| 久久精品夜色噜噜亚洲A∨| 久久99国产精品一区二区| 亚洲熟妇无码另类久久久| 日韩久久久久中文字幕人妻| 久久高潮一级毛片免费| 四虎国产精品免费久久久| 国产成人精品久久二区二区| 久久亚洲美女精品国产精品| 久久久无码人妻精品无码| 亚洲精品无码久久久久sm| 亚洲精品蜜桃久久久久久| 久久精品国产男包| 人妻无码久久一区二区三区免费 | 91精品观看91久久久久久| 嫩草影院久久国产精品|