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

  • Home
  • SEARCH
  • 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 8454403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:01:15+00:00 2026-06-10T12:01:15+00:00

I’m working on a project where you can draw on the screen using touch.

  • 0

I’m working on a project where you can draw on the screen using touch. I thought of using OpenGL for it, however I came across two examples; one using OpenGL and the other using Quartz2D.

Example project from Apple, GLPaint, using OpenGL

Example project from EffectiveUI using Quartz2D

What strikes me, is that the Quartz implementation is considerably faster then the OpenGL implementation. I always presumed that OpenGL would be faster, because it is lower level, it can almost speak to the hardware itself. I know that Quartz2D is also using OpenGL for drawing, so my question is; why is the drawing in the GLPaint example so slow?

Could you make any optimizations to the GLPaint project that would benefit performance?

  • 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-10T12:01:16+00:00Added an answer on June 10, 2026 at 12:01 pm

    It is a well known fact that on the simulator, Quartz 2D can be about 5x faster than OpenGLES, because OpenGLES isn’t hardware accelerated there (different chipsets, ARM vs i386).

    I would encourage you strongly to test using OpenGLES on the device and compare that to Quartz 2D, and then you should experience about a 2x performance enhancement for OpenGLES.

    Another thing to consider when using OpenGL is image manipulation. OpenGL wasn’t made for that, and as such has only one image buffer, meaning only one image can actually be in the GPU at once. To compensate, try using a program like TexturePacker to make a texture atlas (as a PVRTC) to load into OpenGL, and you should have some huge performance increases.

    With the above taken into consideration, remember that GLPaint isn’t actually drawing lines in it’s implementation, but trying to draw a semi-transparent PNG over the framebuffer, and then coloring it accordingly. That is very costly, and I would recommend comparing apples to apples (OpenGL line drawing vs Quartz line drawing)

    Let’s face it – OpenGL is old, and as such must be treated as it is – an old dog. You can’t teach this old dog new tricks, but it’s damn good at the tricks it knows.

    Quartz on the other hand is a new dog – while it can do lots of tricks, it cannot do one thing particularly well – performing them. It’s OK for moderately complex projects, but for anything major, I will always recommend OpenGL, or a thin C++ wrapper over it.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
Does anyone know how can I replace this 2 symbol below from the string

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.