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 7683729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:51:41+00:00 2026-05-31T18:51:41+00:00

I ran my app through Instruments today and noticed that an excessively high amount

  • 0

I ran my app through Instruments today and noticed that an excessively high amount of time was being spent in the “glgConvertTo_32” function. I read elsewhere that this is because Apple uses “GL_BGRA and GL_UNSIGNED_INT_8_8_8_8_REV” for it’s texture format, and my code uses GL_RGBA.

I’m using glTexture2D as follows:

glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, textureData);

Neither GL_BGRA nor GL_UNSIGNED_INT_8_8_8_8_REV are available in the GL headers for iPhone, however. Is there another reason for the high volume of calls to that function, or is there possibly a different texture format I should be using?

EDIT:
I should mention that I’m using OpenGL ES 2.0.

  • 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-05-31T18:51:42+00:00Added an answer on May 31, 2026 at 6:51 pm

    I don’t know if my problem/solution is really related to yours. But your unanswered question was the first result google found while investigating my problem.

    Although I use OpenGL ES 1.1 and don’t use Textures I also noticed that my app
    spends about 23% of time in the function glgConvertTo_32().

    After changing the value of kEAGLDrawablePropertyColorFormat from kEAGLColorFormatRGBA8 to kEAGLColorFormatRGB565 in eaglLayer.drawableProperties the function glgConvertTo_32() is not called anymore. The app feels faster and I don’t see a visual difference.

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

Sidebar

Related Questions

I have a console app that's geared to be automatically ran as a Scheduled
I'm building and Android app that needs to go through steps like a wizard.
Background: I'm working on a single page web app that loads everything through AJAX
I'm part way through building a fairly complex HTML5 web app, that retrieves its
I ran a pen-testing app and it found a ton of XSS errors, specfically,
I ran into a horrifying bug when my app went live. It crashes in
I ran into an issue with an IIS web app shutting down an idle
I ran into an interesting (and very frustrating) issue with the equals() method today
Can I run an Android app through the emulator and make it print strings
I'm writing a latency sensitive app that in effect wants to wait on multiple

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.