• <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)  編輯 收藏 引用 所屬分類: 其他
            国产成人久久久精品二区三区| 国产精品久久午夜夜伦鲁鲁| 中文字幕成人精品久久不卡| A级毛片无码久久精品免费| 久久久久黑人强伦姧人妻| 亚洲国产精品一区二区三区久久| 国内精品伊人久久久久妇| 蜜臀av性久久久久蜜臀aⅴ| 一级做a爰片久久毛片16| 一本大道久久香蕉成人网| 狠狠色丁香婷综合久久| 久久99热这里只频精品6| 国产精品久久久久久搜索| 亚洲午夜精品久久久久久app| 久久久久无码精品国产| 亚洲国产精品成人AV无码久久综合影院 | 亚洲国产精品久久电影欧美| 国产精品成人99久久久久91gav| 久久综合久久美利坚合众国| 久久se精品一区二区影院| 九九精品99久久久香蕉| 久久人妻少妇嫩草AV蜜桃| 国产一区二区三精品久久久无广告 | 久久精品国产91久久麻豆自制| 国产精品久久久久久久久软件 | 国产精品久久久久国产A级| 亚洲精品综合久久| 久久国产成人精品国产成人亚洲| 久久亚洲日韩精品一区二区三区| 午夜福利91久久福利| 精品国产热久久久福利| 久久电影网一区| 国产午夜精品理论片久久影视 | 国产精品热久久无码av| 精品综合久久久久久97超人 | 久久亚洲中文字幕精品一区| 99热热久久这里只有精品68| 国产精品久久久久久久午夜片| 久久美女网站免费| 国产精品欧美久久久久天天影视| 91久久精品电影|