• <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)  編輯 收藏 引用 所屬分類: 其他
            日韩欧美亚洲国产精品字幕久久久| 久久99精品国产麻豆婷婷| 亚洲人成无码网站久久99热国产| 久久久精品国产亚洲成人满18免费网站| 国产69精品久久久久99尤物| 精品欧美一区二区三区久久久| 欧美亚洲国产精品久久久久| 无码人妻久久一区二区三区免费丨| 久久国产精品99精品国产| 女同久久| 久久99中文字幕久久| 伊人久久一区二区三区无码| 久久精品国产亚洲精品2020| 久久本道综合久久伊人| 精品久久久久久国产潘金莲| 四虎影视久久久免费观看| 97久久超碰国产精品旧版| 天堂无码久久综合东京热| 婷婷综合久久狠狠色99h| 亚洲精品成人网久久久久久| 久久96国产精品久久久| 综合久久国产九一剧情麻豆| 久久精品成人免费国产片小草| 色综合久久久久综合体桃花网| 亚洲国产成人久久综合区| 狠狠色丁香久久综合婷婷| 久久精品亚洲一区二区三区浴池| 欧美激情精品久久久久久久九九九| 久久精品国产99国产电影网| 日韩精品久久无码中文字幕| 一本色道久久99一综合| 久久亚洲AV无码精品色午夜麻豆| 国产精品热久久毛片| 久久电影网一区| 亚洲综合婷婷久久| 99久久精品国内| 久久免费国产精品一区二区| 久久久精品2019免费观看| 国产亚洲综合久久系列| 99久久99这里只有免费的精品| 99久久这里只有精品|