• <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 閱讀(371) 評論(0)  編輯 收藏 引用 所屬分類: 其他
            久久香蕉国产线看观看精品yw| 精品综合久久久久久88小说| 品成人欧美大片久久国产欧美...| 久久国产精品免费一区| 久久精品国产亚洲AV麻豆网站| 久久丫精品国产亚洲av不卡 | 精品久久久无码中文字幕天天| 久久本道伊人久久| 91久久精品视频| 久久无码人妻精品一区二区三区| 中文成人无码精品久久久不卡| 亚洲乱码精品久久久久..| 久久久亚洲欧洲日产国码二区| 久久91亚洲人成电影网站| 久久久WWW免费人成精品| 狠狠色综合网站久久久久久久高清| 久久久久亚洲AV无码麻豆| 久久精品国产99国产精品澳门| 国产综合成人久久大片91| 欧美精品九九99久久在观看| 久久久久亚洲精品天堂| 亚洲国产成人久久笫一页| 国产精品99精品久久免费| 国产精品成人久久久| 久久久久久亚洲精品无码| 亚洲精品无码专区久久久| 久久久久久一区国产精品| 久久国产成人精品麻豆| 亚洲av日韩精品久久久久久a| 久久国产精品偷99| 久久狠狠高潮亚洲精品| 久久精品一本到99热免费| 国产—久久香蕉国产线看观看| 久久久久久久久无码精品亚洲日韩| 久久天天躁狠狠躁夜夜av浪潮 | 久久精品国产免费| 亚洲午夜久久久久久久久电影网| 久久99久久无码毛片一区二区| 国产成人精品久久免费动漫| 久久久高清免费视频| 久久这里的只有是精品23|