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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:16:29+00:00 2026-06-01T00:16:29+00:00

I have an animated game which is generally achieving 25-30 frames per second, though

  • 0

I have an animated game which is generally achieving 25-30 frames per second, though occasionally freezes for a quarter of a second here and there. From looking at assorted posts I guess it is probably doing some garbage collection.

I am using eclipse and am armed with DDMS and the internal profiler – which I haven’t fully got to grips with yet. But as far as I can tell there seem to be very few and infrequent memory allocations going on, and the ones there are seem very small. Also when looking at the list of functions and what percentage of the time they are taking, I can not see anything strange. Mind you I don’t quite know what to looking for – is there a function called DoingGarbageCollectionNow() or similar that I should see on the list? I can’t find anything like it.

EDIT: The little freezes only appear obvious on my Samsung Galaxy Y (Android 2.3.5). On my Google Nexus S (Android 2.3.3), the frame rate is 25 or more throughout.

EDIT: Could the delays even be caused by another app (or OS procedure) running in the background – and if so, how could I tell?

  • 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-01T00:16:30+00:00Added an answer on June 1, 2026 at 12:16 am

    I haven’t wrote on android specifically, but generally you want to examine gc in logging to see it’s behavior and timing.

    See this article for android specific gc logging info. http://www.infectentertainment.com/2010/05/28/android-garbage-collection/

    Platform agnostic solution may be to look at a parallel gc or other gc types if possible on the platform.
    “The concurrent collector introduced in Gingerbread helps[…]” Source: http://developer.android.com/guide/practices/design/performance.html

    Better solution still is to avoid instantiation if at all possible by examining creation of objects in loops and eliminating them.

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

Sidebar

Related Questions

I have created an animated game app, In which I am using NSTimer to
Is there a way to have an animated loading screen for my iPhone application
I have an iPhone game in which players can tweet their score. I use
I am making a multithreaded pacman game. There is a PacmanController class which extends
i am new to LibGDX i'm building a game and i have an animated
I have a game with a number of animated monsters. The animation is made
I have implemented game application.In which i want to animate some area of images
I have created a game which paints images to a JPanel. This runs with
I have an animated gif placed on the button. It's animating ok (most of
So, I have an animated drop down menu that slides down when your mouse

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.