开发者

Nine Patch Image in Android Game

开发者 https://www.devze.com 2023-01-04 01:17 出处:网络
I am trying to use a nine patch image as a background in an android game. The image expands well in multiple resolutions but, my game has slowed down by 10 fps. I used to get a consistent 45 to 50 fps

I am trying to use a nine patch image as a background in an android game. The image expands well in multiple resolutions but, my game has slowed down by 10 fps. I used to get a consistent 45 to 50 fps now I get 35 fps.

The question is when we use a nine patch as a drawable and set it as a background in a view does it have any performance implications as opposed to a plain bitmap drawing.

开发者_开发问答

Thanks in advance.


The question is when we use a nine patch as a drawable and set it as a background in a view does it have any performance implications as opposed to a plain bitmap drawing.

If you are causing it to be stretched, then yes.

0

精彩评论

暂无评论...
验证码 换一张
取 消