Android: Canvas.DrawBitmap VS Drawable.Draw - Huge performance boost

前端 未结 2 1199
没有蜡笔的小新
没有蜡笔的小新 2021-02-04 05:15

I just found out something and I was wondering about how and why. I\'m developing a small arcade game for Android. I decided to ignore OpenGL and use the standard SurfaceView an

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-04 05:39

    The SurfaceView of your Canvas is meant to be used when you should iterate constantly and Drawable is not for that purpose.

提交回复
热议问题