• <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)  編輯 收藏 引用 所屬分類: 其他
            亚洲国产高清精品线久久| 久久婷婷色综合一区二区| 亚洲精品高清国产一久久| 精品水蜜桃久久久久久久| 综合网日日天干夜夜久久| 国产精品久久免费| 久久精品青青草原伊人| 久久精品人人做人人爽97| 久久久中文字幕日本| 久久精品中文无码资源站| 精品熟女少妇aⅴ免费久久| 漂亮人妻被黑人久久精品| 国产精品一区二区久久精品无码 | 国产精品久久久久久久久鸭| 欧美粉嫩小泬久久久久久久| 久久国产精品99久久久久久老狼 | 国内精品久久久久久久涩爱| 少妇久久久久久被弄高潮| 久久中文精品无码中文字幕| www性久久久com| 久久精品国产久精国产思思| 国产精品久久久香蕉| 免费精品久久久久久中文字幕| 国产精品久久久久久| 久久久久久夜精品精品免费啦| 伊人久久五月天| 中文国产成人精品久久亚洲精品AⅤ无码精品| 狠狠色丁香婷婷综合久久来 | 久久人与动人物a级毛片| 99久久亚洲综合精品网站| 国产精品视频久久久| 久久精品www人人爽人人| 无码人妻久久一区二区三区免费 | 无码精品久久久久久人妻中字| 狠狠色丁香久久婷婷综合_中| 香蕉99久久国产综合精品宅男自 | 亚洲va久久久噜噜噜久久天堂| 久久精品国产亚洲AV香蕉| 亚洲午夜无码久久久久| 色诱久久久久综合网ywww| 久久发布国产伦子伦精品|