GLSurfaceView会比SurfaceView更快地渲染位图吗?(Will GLSurfaceView render a bitmap faster than SurfaceView?)
我将来自某些外部源的视频作为一系列位图渲染到
SurfaceView
。 有时渲染速度不够快。我正在考虑用GLSurfaceView替换SurfaceView以进行位图渲染,但是,由于这些是位图并且没有像Open GL矢量那样,我认为渲染不会变得更快。
我希望它变得更快吗? 这个改变需要我刷一些OpenGL知识,所以我想我最好先问一下。
I'm rendering video from some external source as a series of bitmaps to a
SurfaceView
. Sometimes the rendering is not fast enough.I'm thinking of replacing SurfaceView with GLSurfaceView for bitmap rendering but then, since these are bitmaps and nothing like Open GL vectors I don't think the rendering will become faster.
Shall I expect it to become faster? The change will require me brushing up some OpenGL knowledge so I thought I'd better ask here first.
原文:https://stackoverflow.com/questions/10604155
最满意答案
错误:首先必须设置内容视图(R.layout.gameactivity),然后使用findViewById(R.id.grid_view)!
Error:U must setContentView(R.layout.gameactivity) firstly,and secondly to use findViewById(R.id.grid_view)!
相关问答
更多-
编辑 :我正在更新我的答案 所以最后我到了你错的地方 检查你的条件 在accessCodeEntered()方法中 Commander2.java活动 if(loginPassword.toString().equals(LEVEL_ONE_ACCESS_CODE)){} 在这里你没有得到密码的价值,并尝试使用它,所以我添加了“ getText() ”方法,它的工作正常,像这样 if(loginPassword.getText().toString().equals(LEVEL_ONE_ACCESS_C ...
-
android应用程序崩溃了(android application is crashing)[2022-04-30]
错误:首先必须设置内容视图(R.layout.gameactivity),然后使用findViewById(R.id.grid_view)! Error:U must setContentView(R.layout.gameactivity) firstly,and secondly to use findViewById(R.id.grid_view)! -
它没有解决,但我决定不再花费更多时间,放弃ACRA。 事实证明, 批评是相当无痛的。 It's not solved, but I decided to not spend any more time on it, and abandon ACRA. Crittercism has proven to be quite painless.
-
Android应用程序在Typeface.createFromAsset上崩溃(Android application crashing on Typeface.createFromAsset)[2022-03-02]
基本上有4件事可能导致这种情况: 1.你使用了错误的扩展名 2.您将字体放在assets文件夹中,而不是在assets / fonts /中 你拼错了字体 4.字体需要小写(在我的例子中,解决方案是将MyFont.ttf重命名为myfont.ttf,奇怪) There are basically 4 things that can cause this: 1.You use the wrong extension 2.You placed the fonts in the assets folder and ... -
应用程序崩溃在Android中(Application Crashing in Android)[2022-03-05]
您的CountDownTimer尝试在Activity结束生命周期后显示AlertDialog 。 也许你正在调用finish()但不要cancel()任务。 您可以添加一个由计时器检查的变量,如果它仍然显示对话框,如下面的示例所示 public class TimerActivity extends Activity { private boolean mDialogEnabled; @Override protected void onCreate(Bundle savedI ... -
包名称有playZone,应该是playzone package name had playZone and should have been playzone
-
在哪些文件夹中放置以下布局? R.layout.fragment_pager R.layout.fragment_pager_list 在布局或布局中 - * ?? 编辑: 我认为问题在于此代码(与SherlockFragmentActivity相关: getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 尝试使用xm ...
-
你点击按钮点击http帖子,Http线程不在主线程上运行 编写异步任务并在该线程中执行网络操作,此线程在后台运行 http://hmkcode.com/android-cleaner-http-asynctask/ 并研究异步任务 http://developer.android.com/reference/android/os/AsyncTask.html u r calling http post on button click , Http thread not run on main thread ...
-
当您从xml绑定TabHost时,看起来您正在使用android.R.id.tabhost而不是R.id.tabhost。 没有一些logcat输出,这是我最好的猜测。 祝你好运 Looks like you are using the android.R.id.tabhost instead of R.id.tabhost when you are binding your TabHost from your xml. Without some logcat output thats my best gu ...
-
确保MainPage活动位于包“com.example.boacterapp”中。 另一种选择:替换短名称: android:theme="@style/AppTheme" >
使用长名称构 ...