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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:33:49+00:00 2026-06-16T00:33:49+00:00

Going with the time I try to implement view pager in my tile based

  • 0

Going with the time I try to implement view pager in my tile based game – and swiping is janky. I performed necessary performance measures like suggested by @romangui , and found out that redrawing my gaem field takes about 48 msec (way too long) – and I already flattened layout, eliminated overdraw have my custom layout managers etc.

I discovered that drawing one tile on GN takes about 0.600 msec – way too long for all 81 tiles. Time is actually spend on Canvas.drawBitmap(...)

Any ideas how to improve performance? I have only 6 different bitmaps, they are loaded once and reused. ARGB_8888. Of course they to not necessarilly match actual displayed size.

Would I get better performance if I pre render them for actual display size after my layout was measured?

Or shall I bite the bullet and pre render one big bitmap with my game state just for scrolling?

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

    You should be sure that you do not make Android to use scaling of the images while drawing.

    Try to use previously scaled images, as in Draw a scaled bitmap to the canvas?

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

Sidebar

Related Questions

Fist time using fancybox and it's not going so well.. starting to wish I
It is the first time I am going to sumbmit my app. I know
I was going through some data structures and I noticed this as a time
I was going to start using === (triple equals, strict comparison) all the time
Yesterday I used jQuery UI for the first time and I think I'm going
I'd like to add a real-time graphical representation of what's going on behind some
I'm designing a database application where data is going to change over time. I
I have following code, my target is going to return GMT+0 time in millisec.
I'm going to implement a (simple) downloader application in Java as a personal exercise.
OK, I'm going to try my best to explain my problem. I have this

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.