gpt4 book ai didi

android - 安卓游戏中的 9-patch 图像

转载 作者:行者123 更新时间:2023-11-29 00:50:34 25 4
gpt4 key购买 nike

我正在尝试使用 9-patch 图像作为 Android 游戏的背景。图像在多种分辨率下扩展良好,但我的游戏速度降低了 10 fps。我曾经获得稳定的 45 到 50 fps,现在我获得了 35 fps。

问题是,当我们使用 9-patch 作为可绘制对象并将其设置为 View 中的背景时,与普通位图绘制相比,它是否对性能有任何影响。

提前致谢。

最佳答案

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.

如果你导致它被拉伸(stretch),那么是的。

关于android - 安卓游戏中的 9-patch 图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3087282/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com