I took an SurfaceView example from the net:

http://tinyurl.com/35x66f5

I replaced the onDraw() contents with a simple
plotting routine that plots (100, 100), then adds
one to x, and one to y, wrapping around at the screen
edge.

So, as expected, I see the pixels being drawn toward
the lower bottom of the screen.  The thing is, that
it's taking around 10 seconds for the draw to span
from one edge of the screen to the next.  That's just
a few hundred plots.  This would be way to slow for
a game.  Is SurfaceView the correct tool to use for
a vector animation game?

I thought that maybe what I was actually looking at
was my final frame rate, and that if I started doing
complex animation, that frame rate wouldn't slow down
very much.  Is that how it is?

Also, my 'dot' is leaving a trail; the old contents
are not erased.  Do people clear out the whole screen
between draws, or just try to make all the objects take
car of redrawing their background when the move?

Thanks,

Tobiah

--
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