• <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)  編輯 收藏 引用 所屬分類: 其他
            久久天堂AV综合合色蜜桃网| 国产婷婷成人久久Av免费高清| 国产精品99久久久久久董美香| 99久久国产综合精品网成人影院 | 久久精品亚洲日本波多野结衣| 欧美一区二区三区久久综| 亚洲人成伊人成综合网久久久| 国产精品一久久香蕉国产线看观看| 国产精品久久久天天影视香蕉| 久久久久99这里有精品10| 国产精品女同久久久久电影院| 久久男人AV资源网站| 中文字幕日本人妻久久久免费| 日韩一区二区久久久久久 | 浪潮AV色综合久久天堂| 久久线看观看精品香蕉国产| 香港aa三级久久三级老师2021国产三级精品三级在 | 久久婷婷久久一区二区三区| 久久久精品国产免大香伊| 久久91精品国产91久久户| 国产99久久久国产精品小说| 一本大道久久a久久精品综合| 亚洲伊人久久精品影院 | 亚洲天堂久久久| 国产亚洲成人久久| 久久综合久久综合久久综合| 亚洲中文字幕无码久久2017| 亚洲国产一成久久精品国产成人综合| 国产精品99精品久久免费| 亚洲精品无码久久千人斩| 亚洲国产成人久久一区WWW| 久久婷婷久久一区二区三区| 国产精品美女久久久久| 久久国产乱子伦免费精品| 久久久SS麻豆欧美国产日韩| 国产真实乱对白精彩久久| 99久久亚洲综合精品成人| 浪潮AV色综合久久天堂| 久久精品国产亚洲av麻豆小说| 亚洲精品美女久久777777| 婷婷久久久亚洲欧洲日产国码AV|