Double buffering in Java on Android with canvas and surfaceview -
how 1 go doing this? give me outline?
from i've found online, seems in run() function:
- create bitmap
- create canvas , attach bitmap
- lockcanvas()
- call draw(canvas) , draw bitmap buffer (how??)
- unlockcanvasandpost()
is correct? if so, bit of explanation; these steps mean , how implement them? i've never programmed android before i'm real noob. , if isn't correct, how do this?
it's double buffered, that's unlockcanvasandpost() call does. there no need create bitmap.
Comments
Post a Comment