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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:40:09+00:00 2026-05-27T03:40:09+00:00

so just a general question on what people think is the most efficient method

  • 0

so just a general question on what people think is the most efficient method for programming a game. My game will have a number of images moving all over the screen and rotating, changing, etc.
The two options I see for a construction are:

  1. Create 1 UIViewController and add to it a bunch of UIImageViews
    at runtime, and then move these UIImageViews around programatically

  2. Create a UIVIewController and add to it a sublclass of UIView,
    say GameView. Then, add an array of objects (which contains data
    like UIImage and location) to GameView, and override the drawRect
    method of GameView to draw these objects.

My question is, which one seems like it would put the least strain on the device? Is it bad to have a large number of UIImageViews moving around, because it seems like they have to remember a lot more data than just the UIImage and location, which is pretty much all I need.

  • 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-27T03:40:10+00:00Added an answer on May 27, 2026 at 3:40 am

    Use the UIImages in the UIView. It’ll be a lot lighter-weight, and it makes more sense. For best performance, though, you’re going to need to switch to OpenGL.

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

Sidebar

Related Questions

just a general question, do you ALWAYS have to handle error? i was just
Ok another WPF question, well I guess this is just general .NET. I have
Hello Fellow Computer People! Anyone willing to help will have my gratitude ;) Just
Just a general question about what the best practice is: public void Foo() {
This is just a general question - I was sitting and waiting for a
For desktop application that is. This is just a general question that maybe only
Just a general curiosity question. Why is this namespace System.Collections.Generic added by default in
just had a general question about how to approach a certain problem I'm facing.
This is more of a general question for people to provide me guidance on,
I asked a general Spring question: Auto-cast Spring Beans and had multiple people respond

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.