Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8541023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:43:58+00:00 2026-06-11T11:43:58+00:00

I have optimized a function Render() by changing OpenGL code. I have then run

  • 0

I have optimized a function Render() by changing OpenGL code. I have then run Instruments / Time Profile with time limit 180 sec (so the measure was done accurately).

  1. Turn on Invert Call Tree:
    • 680 ms for non-optimized,
    • 500 ms for optimized.
  2. Turn off Invert Call Tree:
    • 277 ms for non-optimized,
    • 345 ms for optimized.
  3. Turn on Top Functions (still turn off Invert Call Tree):
    • 4591 ms for non-optimized,
    • 5277 ms for optimized.
  4. Turn on Invert Call Tree (still turn on Top Functions):
    • no changes (4591),
    • no changes (5277).

How to interpret this? Is the optimized version faster or slower?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:43:59+00:00Added an answer on June 11, 2026 at 11:43 am

    The Time Profiler results depend on the version of Xcode you’re running. If you are running Xcode 4.4 or later, the Time Profiler instrument has two columns for each symbol in the call tree: Running Time and Self. The Self column is more important because it tells you the amount of time the function was at the top of the call stack. All the Running Time column tells you is how much time the function was on the call stack, which doesn’t really mean as much as being at the top of the stack.

    To see how much time your app spent in Render(), deselect the Invert Call Tree checkbox and look at the Self column for Render(). If this is a game you’re profiling, what can help is to double-click your game loop function in the call tree. Double-clicking the game loop function opens the source view, which will tell you the percentage of time your game loop spends in the Render() function.

    The Time Profiler instrument isn’t the best tool for profiling OpenGL code. If you’re writing a Mac app, the OpenGL Profiler tool profiles OpenGL code better than Instruments. Instruments also has an OpenGL Driver instrument for measuring OpenGL statistics. If you’re profiling an iOS app, use the OpenGL ES Analysis Instruments template and the OpenGL ES Performance Detective tool.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have performance critical code written for multiple CPUs. I detect CPU at run-time
I have written this code to join ArrayList elements: Can it be optimized more?
I have array of objects: var aoo = [{},{},{},....{},{},{}]; I need a optimized function
I have this function whose essential operations are outlined as follows: function render($index) {
I have a function which will be called many times throughout my code. This
I have optimized as much as I could my function for sequential running. When
I have the following code (I know that this code is not optimized but
Sometimes, it would be convenient to have a highly optimized function for regex search
I have a function that I'm trying to optimize at the moment but I'm
Hi I have a function in R that I'm trying to optimize for performance.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.