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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:21:59+00:00 2026-06-05T21:21:59+00:00

I have a problem: (I wouldn’t be here otherwise ;) I am creating an

  • 0

I have a problem: (I wouldn’t be here otherwise 😉

I am creating an app that has a feature for displaying “3D” models. This part is really a collection of images taken from many angles and allows the user to “rotate” the “model”.
This idea is working fine, but the problem lie in the loading of the images.

I have found that there are two ways:

  1. Load all the images into memory, and then simply switch them for the correct angle.
  2. Load the images as we need them – we can load a few ahead of time.

However these have problems:

  1. If I was lucky, the images would fit into memory, but they don’t. They are about 1.5-2MB each and there are about 75-100 images per model. This brings the total size to about 115MB at the minimum.
  2. If I was lucky, the image would load quicker than the user could “rotate”, but they don’t. The user can easily switch to an angle that is not loaded yet, resulting in a black screen for a few seconds.

I have created a loader that allows me to simply add the images that I need to a stack and the loader will then one-by-one load the images. This works fine if the user scrolls fairly slowly. My loader takes care of releasing memory when it is finished, so no matter how many images I load, the app usually won’t crash as long as I specify the max images to store in memory. My loader can load the images very quickly, but there is still a few milliseconds (~250ms) for it to load the large image into memory.
Of course, the loader is on a different thread, and the loading in no way hinders UI response. That is why if the user swipes back and forth quickly, no image will actually display, as the loading and unloading are all working at the same time to result in no images 🙂

So, my problem: How do I provide a smooth and user-pleasing rotation of the images without loading all the images into memory?

  • 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-05T21:22:00+00:00Added an answer on June 5, 2026 at 9:22 pm

    Thanks for the answers. I laughed at myself and then went to bed after reading the answers.
    Let me share how I resolved this problem – it uses some pieces of the answers:

    I was trying to cache the large images in memory – this is unnecessary, why not store a lower res version and then load the hi res when the user stops scrolling? Then the user can scroll as fast as he likes and there will always be images in memory to quickly paint. When the user stops/slows scrolling, we load the hi res image.

    Because he will be scrolling fast, he won’t be able to see the lower res’ lower quality.
    And, as there will only be one hi res to load, the ~250ms delay is hardly noticeable.

    This really combines the best of both cases. And I can use the Android’s methods for loading a lower res version of the Bitmap.

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

Sidebar

Related Questions

I have this problem with my code, the page is redirecting and wouldn't stop..
I have this problem in IE8 that ignores my first stylesheet link. I don't
I have encountered a problem in my program that has me somewhat stumped. I
I am developing a software that uses number precision, but I have this problem,
I have a problem that has been bothering me now for a few days.
I suppose similar problem would have been discussed here, but I couldn't find it.
i have the following problem: i would like to create a footer. that footer
I have a problem finding references to this subject and would appreciate some help.
I have a problem with my layout. I have a content div that I
I have a single procedure that has two insert statements in it for two

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.