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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:29:56+00:00 2026-05-31T06:29:56+00:00

What should be the difference, purpose wise, between these two methods in my render

  • 0

What should be the difference, purpose wise, between these two methods in my render loop?

Apple has this to say….

About update()
The view controller calls its delegate’s glkViewControllerUpdate: method. Your delegate should update frame data that does not involve rendering the results to the screen.

About drawInRect:
the GLKView object makes its OpenGL ES context the current context and binds its framebuffer as the target for OpenGL ES rendering commands. Your delegate method should then draw the view’s contents.

So basically, when I create a GLKView in my view controller, that controller becomes the delate, so I am looking at these methods side by side.

I assumed that update() should contain any transforms or other logic.

  • 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-31T06:29:58+00:00Added an answer on May 31, 2026 at 6:29 am

    In the first instance, Apple are trying to help you decouple timing from frame rate. If your game always manages to draw a frame in the time allotted for a single frame, the two will occur in lockstep. But even if lots of objects come on screen and your frame rate sags a little, you’ll still get the same number of updates a second so objects will still move at the same speed.

    In the second, they’re helping you keep your code divided as model-view-controller. How your objects are presented should be decoupled from how they act.

    So your update should progress whatever it is that causes your animation, your draw should present the current state.

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

Sidebar

Related Questions

What's the difference between the two and when should I use each: <person> <firstname>Joe</firstname>
What's the difference between the two, when should RegisterAttached() be used instead of .Register()?
Possible Duplicate: Difference between pointer variable and reference variable in C++ When should I
What is the difference between ListView and ArrayList and what should i choose when
What's the difference between a string and a symbol in Ruby and when should
What's the difference between file and open in Python? When should I use which
What is the difference between g++ and gcc? Which one of them should be
I'm using MVVM, in case it makes a difference. My MainWindowViewModel has two DependencyProperties,
I understand that the purpose of methods assigned as properties of this in a
What's the real difference between those two? I mean real, essential difference. What's the

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.