SurfaceView或GLSurfaceview? [英] SurfaceView or GLSurfaceview?

查看:165
本文介绍了SurfaceView或GLSurfaceview?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,请帮我决定是否使用SurfaceView或GLSurfaceView。

Hello there please help me to decide whether to use SurfaceView or GLSurfaceView.

我将开发一个游戏,我的论文,我已经知道如何用帆布玩,但我不知道这是否可以处理至少70精灵没有滞后或任何问题。和BTW我只会开发的2D游戏,请帮助莫来决定!我应该学习的OpenGL和使用GLSurfaceView或者也没关系使用画布我简单的2D游戏的感谢。

I will be developing a game for my thesis and I already know how play with Canvas but I'm not sure if this can handle at least 70 sprites without lag or whatsoever problem. and BTW i will only developing 2d game so please help mo to decide !! Should i study the OpenGL and use GLSurfaceView or it's okay to use Canvas for my simple 2d game thanks.

推荐答案

在Android的画布实际上可以硬件加速的OpenGL槽(因为Skia的的)。

In android canvas can be actually hardware-accelerated trough OpenGL (because of skia).

随着70精灵有帆布和GL之间没有很大的区别。 OpenGL的需要更多的配置,但给你更多的方法来优化图形。

With 70 sprites there's no big difference between Canvas and GL. OpenGL requires more configuration, but gives you more ways to optimize drawing.

这篇关于SurfaceView或GLSurfaceview?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆