Double buffering in Java on Android with canvas and surfaceview

后端 未结 2 511
耶瑟儿~
耶瑟儿~ 2020-12-09 13:39

How does one go about doing this? Could somebody give me an outline?

From what I\'ve found online, it seems like in my run() function:

  1. create a bitmap<
2条回答
  •  有刺的猬
    2020-12-09 14:04

    It's already double buffered, that's what the unlockCanvasAndPost() call does. There is no need to create a bitmap.

提交回复
热议问题