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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:58:28+00:00 2026-06-18T05:58:28+00:00

Simple question, not sure sure there’s a simple answer though!! Is there anything at

  • 0

Simple question, not sure sure there’s a simple answer though!!

Is there anything at all that I can do to speed up my surfaceview drawing?

I’m using something like this:

c.drawBitmap(scaledSprite, X, Y, redPaint);

The method that I’m using has to draw about 25 of these sprites on the screen, so I’m using a for loop, meaning it has to display 25 during a frame.

Now, this works absolutely fine on the 3 phones that I’ve tested on, but on a tablet, it just slows down. I’ve commented out all the other drawing methods and left just this one and this is definitely what is slowing the game down.

Are there any clever tips anyone can give me to speed this up?

I know open GL is a possibility but the bulk of the game is now written so I don’t really want to make any drastic changes now if I can help it.

  • 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-18T05:58:29+00:00Added an answer on June 18, 2026 at 5:58 am

    If you set your SurfaceView to lower quality graphics

    getHolder().setFormat(0x00000004); //RGB_565
    

    and load all bitmaps in the same config

    Options options = new BitmapFactory.Options();
    options.inScaled = false; 
    options.inPreferredConfig = Bitmap.Config.RGB_565;
    

    This would make it faster, plus you would need to make variable movement speed of sprites depending on the frame delay.

    However, even with these settings an arcade game with many sprites will not work well on a tablet, hence, I am afraid, if you want to make a proper game that sells, you must create an OpenGl framework or use ready made ones.

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

Sidebar

Related Questions

Simple question, not sure there's a simple answer! So here's the code: (I've simplified
A simple question that I'm not sure if it has a short answer! Description
This is seems like a pretty simple question, but I'm not sure if there's
I'm sure there is a fairly simple answer to this question, so here we
Firs off all, I'm not sure if there will be any simple and straight
Basic question to which I'm sure there is a simple answer. I'm trying to
I have a question that's so simple I cannot believe I can't answer it
I have a simple question, and I'm not even sure it has an answer
I have a simple question but was not able to find an answer on
Simple question, the answer may not be... I'm going to be developing a web

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.