• <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 閱讀(373) 評論(0)  編輯 收藏 引用 所屬分類: 其他
            久久精品国产精品亚洲下载| 亚洲午夜精品久久久久久人妖| 久久综合久久伊人| 亚洲国产天堂久久久久久| 亚洲一级Av无码毛片久久精品| 亚洲国产精品无码久久| 国产精品免费久久久久电影网| 无码AV波多野结衣久久| 精品久久久久久久中文字幕| 亚洲精品美女久久777777| 99久久国产主播综合精品| 久久99精品久久久久久久不卡| 亚洲国产日韩欧美综合久久| 91久久九九无码成人网站| 麻豆亚洲AV永久无码精品久久| 免费精品久久久久久中文字幕| 久久99精品国产麻豆宅宅| 人妻无码αv中文字幕久久| 亚洲欧美精品一区久久中文字幕| 久久精品国产网红主播| 狠狠色丁香婷婷久久综合| 久久se精品一区精品二区国产| 久久97精品久久久久久久不卡| 久久99热这里只有精品66| 日韩亚洲国产综合久久久| 99久久国产免费福利| 情人伊人久久综合亚洲| 99久久国产综合精品麻豆| 精品久久久久久无码专区不卡| 狠狠综合久久综合88亚洲| 久久频这里精品99香蕉久| 久久男人AV资源网站| 久久综合久久性久99毛片| 亚洲国产成人久久综合碰| 亚洲精品99久久久久中文字幕| 久久中文精品无码中文字幕| 精品国产乱码久久久久久浪潮 | 久久一日本道色综合久久| 伊人久久久AV老熟妇色| 久久精品aⅴ无码中文字字幕不卡| 亚洲国产婷婷香蕉久久久久久|