On Monday, August 20, 2012 3:59:10 PM UTC-7, Kostya Vasilyev wrote:
>
> Can't you break the bitmap into smaller tiles, and create/render them 
> independently?


I am. For purposes of this discussion, assume that the picture is 
constructed of tiles that are prerendered, but that may reside on local 
file storage or on a network. There is some other stuff going on too, but 
that is sufficient. 
 
I did say rendering, but actual drawing calls are not the bottleneck. It is 
retrieving and decompressing the tiles.
  

> You could even detect that the user is scrolling in a particular direction 
> and prepare new tiles in advance.
>
 
True, but I'm not counting on being able to avoid showing any blank spots. 

Flickering is a different problem where a portion of the screen goes from 
fully rendered to blank to partially rendered to fully rendered.   

To prevent the flickering problem, I would guess I should predict which 
tiles I will reuse and keep them in memory.  That is essentially the other 
option I've considered.

So I have the choice between keeping a bunch of tiles in memory, or having 
enough buffer to do the overlapped bitmap draw. A cache of uncompressed 
tiles would probably take as much memory as having a double buffer for the 
offscreen bitmap. 

Nathan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to