• <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 閱讀(371) 評論(0)  編輯 收藏 引用 所屬分類: 其他
            久久久91人妻无码精品蜜桃HD| 久久综合中文字幕| 久久天天躁狠狠躁夜夜av浪潮 | 久久免费美女视频| 99久久精品国产综合一区| 久久精品二区| 久久国产亚洲高清观看| 91久久精品电影| 久久综合给久久狠狠97色| 国产精品va久久久久久久| 中文字幕人妻色偷偷久久| 国产午夜精品理论片久久影视| 欧美与黑人午夜性猛交久久久| 蜜臀av性久久久久蜜臀aⅴ| 91亚洲国产成人久久精品网址| 久久久无码精品亚洲日韩京东传媒 | 亚洲精品99久久久久中文字幕| AA级片免费看视频久久| 久久久国产精华液| 久久精品成人一区二区三区| 2020久久精品国产免费| 久久精品国产男包| 大美女久久久久久j久久| 亚洲午夜无码久久久久| 人妻无码久久精品| 久久久亚洲精品蜜桃臀| 久久最近最新中文字幕大全 | 欧美久久久久久精选9999| 亚洲精品乱码久久久久久自慰| 欧美午夜A∨大片久久 | 久久综合久久综合久久| 欧美黑人激情性久久| 久久精品国产男包| 亚洲精品无码久久久久AV麻豆| 久久精品国产99国产精品| 久久青青草原精品影院| 久久免费高清视频| 久久九九久精品国产免费直播| 久久久精品国产亚洲成人满18免费网站| 韩国免费A级毛片久久| 国产精品久久久久AV福利动漫|